I have a base class called OrderBlock which contains three properties, orderSend (int), orderHold (int) & Orders (List<Order>. It also contains a class called Order, structure is shown below in the code block, obviously a very simple snapshot.
The Orders list can contain anywhere from 10 items to 1000 items. What I want to know how to do is to create a event for each item in the list and for the orderSend & orderHold properites in the class OrderBlock to subscribe to each one.
The reason being is I have a WPF application that contains a datagrid which is bound to my list Orders. The user can change the status of an Order from "Hold" to "Send" so I then need to update the orderSend & orderHold properties.
// other properties etc