Hi.
Which is your suggestion to resolve the next problem.
I have an Order and OrderDetail entities.
class Order
{
..
public RelatedEntityList<OrderDetail> Details{ get {return null}};
public decimal Total
{
get { return this.Details.Sum(Amount);
}
}
class OrderDetail
{
public decimal Quantity..
public decimal Price..
public decimal Amount...
}
Now, when the Amount of OrderDetail change i need to raise an PropertyChanged of Order.Total to make the GUI refreshed, i need some notification from the OrderDetail to know about the change. I try to suscribe in the Order constructor to
Detalles.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(Detalles_CollectionChanged);
and suscribe to each OrderDetail PropertyChanged event to receive notifications about the changes, but it is not working.
How do you resolve this problem?
Edited by rbautistaole - 01-Aug-2012 at 11:06am