1 / 28

.NET for Progress Programmers

progressTrainer@live.com info@proWill.nl proWillvanBeek http:// nl.linkedin.com/in/proWill +316 2206 8535. .NET for Progress Programmers. Data Orientation vs Object Orientation Event Handling in .NET. Will van Beek. Independent Consultant www.proWill.nl 1 april 2012.

viet
Download Presentation

.NET for Progress Programmers

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. progressTrainer@live.com info@proWill.nl proWillvanBeek http://nl.linkedin.com/in/proWill +316 2206 8535 .NET for Progress Programmers Data Orientation vs Object Orientation Event Handling in .NET Will van Beek Independent Consultant www.proWill.nl 1 april 2012

  2. Data Oriented (DOP)  Object Oriented (OOP) Event Handling in .NET .NET for Progress Programmers

  3. Data Oriented (DOP)  Object Oriented (OOP) Datastructures – Progress 4GL  .NET Differences – DOP  OOP Datastructures – Examples Record Buffer  Customer class Building a Temp-Table/DataTable Building an Iterator Event Handling in .NET .NET for Progress Programmers

  4. Progress 4GL/ABL Collection – CustNum – Name – Address – Address2 – City – State – Country – Phone – Contact – SalesRep – Comments – CreditLimit – Balance – Terms – Discount – PostalCode – Fax – Email Data Orientation and Object Orientation – DataStructures. • .NET • Primitive Datatypes • DataSet • Temp-Table • Extent • Primitive Datatypes • DataSet • DataTable • Array • , Map, Hash, List, Tree, Dictionary, Bag, Set, Stack, Queue Naming only a few !

  5. Data Oriented (DOP)  Object Oriented (OOP) Datastructures – Progress 4GL  .NET Differences – DOP  OOP Datastructures– Examples Record Buffer  Customer class Building a Temp-Table/DataTable Building an Iterator Event Handling in .NET .NET for Progress Programmers

  6. Progress 4GL/ABL DOP OOP – the Difference is in the Language. • Data is in the Record Buffer • FIND, FOR EACH, QUERY separated from the data • .NET • Data is in Objects • Data and Operations (methods) are encapsulated

  7. Data Oriented (DOP)  Object Oriented (OOP) Datastructures – Progress 4GL  .NET Differences – DOP  OOP Datastructures– Examples Record Buffer  Customer class Building a Temp-Table/DataTable Building an Iterator Event Handling in .NET .NET for Progress Programmers

  8. Data Oriented (DOP)  Object Oriented (OOP) Datastructures – Progress 4GL  .NET Differences – DOP  OOP Datastructures– Examples Record Buffer  Customer class Building a Temp-Table/DataTable Building an Iterator Event Handling in .NET .NET for Progress Programmers

  9. DataStructure examples – the customer class • The Record Buffer through .NET eyes

  10. DataStructure examples – the customer class • The Record Buffer through .NET eyes

  11. Data Oriented (DOP)  Object Oriented (OOP) Datastructures – Progress 4GL  .NET Differences – DOP  OOP Datastructures– Examples Record Buffer  Customer class Building a Temp-Table/DataTable Building an Iterator Event Handling in .NET .NET for Progress Programmers

  12. DataStructure examples – Building a dataTable • The Temp-Table through .NET eyes dataField.cls + name + stringValue dataField.cls + name + stringValue dataField.cls + name + stringValue dataRecord.cls + dataFields dataRecord.cls + dataFields dataRecord.cls + dataFields dataField.cls + name + stringValue dataFieldCollection.cls + count + item as dataField (extent) + add(name,stringValue) dataRecordCollection.cls + count + item as dataRecord (extent) + add(name,stringValue) dataRecord.cls + dataFields dataTable.cls + entity + dataRecords model.cls + loadData(tableName, fieldList, condition) test.p + fetchData + displayData

  13. Demo

  14. Data Oriented (DOP)  Object Oriented (OOP) Datastructures – Progress 4GL  .NET Differences – DOP  OOP Datastructures– Examples Record Buffer  Customer class Building a Temp-Table/DataTable Building an Iterator Event Handling in .NET .NET for Progress Programmers

  15. DataStructure examples – Building an Iterator • Iterating / Looping through .NET eyes

  16. Demo

  17. Data Oriented (DOP)  Object Oriented (OOP) Event Handling in .NET Triggering  Publishing The need for Event Argument Classes .NET events – Examples Defining the event Subscribing to the event Publishing the event .NET for Progress Programmers

  18. Data Oriented (DOP)  Object Oriented (OOP) Event Handling in .NET Triggering  Publishing The need for Event Argument Classes .NET events – Examples Defining the event Subscribing to the event Publishing the event .NET for Progress Programmers

  19. Event Handling in Progress – Triggering an event • Triggering – You’re gonna hit only one Trigger code

  20. Event Handling in .NET – Publishing an event • Publishing – You may hit many Event handler

  21. Event Handling in .NET – Publishing an event • Publishing – examples public protected private define event <event-name> void () <event-name>:Publish ()

  22. Event Handling in .NET – Subscribing to an event • Subscribing – examples Not subscribed Subscribing tool <sender>:<event-name>:Subscribe (<name-eventhandler>)

  23. Event Handling in .NET – Refurbishing the demo • Events provide loose coupling model.cls + loadData(tableName,fields, condition) viewCollection.cls presenter.cls • - addEntity(tableName,fields, • condition) Salesrep Customer Order Orderline

  24. Data Oriented (DOP)  Object Oriented (OOP) Event Handling in .NET Trigger code  Event handlers Triggering  Publishing The need for Event Argument Classes .NET events – Examples Defining the event Subscribing to the event Publishing the event .NET for Progress Programmers

  25. Event Handling in .NET – The need for event argument classes • Contents • Sender Ильинка, ул № 23103132, г. МоскваРоссия

  26. Demo

  27. Thanks you foryour time

  28. Keep in touch www.proWill.nl progressTrainer@live.com info@proWill.nl proWillvanBeek http://nl.linkedin.com/in/proWill +316 2206 8535

More Related