<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Child-Parent notifications.</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Child-Parent notifications.</description>
  <pubDate>Wed, 15 Apr 2026 17:18:23 -700</pubDate>
  <lastBuildDate>Thu, 02 Aug 2012 11:36:15 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3563</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Child-Parent notifications. :   Hi rbatistaole,The CollectionChanged...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3563&amp;PID=14133#14133</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 3563<br /><strong>Posted:</strong> 02-Aug-2012 at 11:36am<br /><br />Hi rbatistaole,<div>&nbsp;</div><div>The CollectionChanged event will be triggered only if the collection itself changes (i.e. an OrderDetail is added or removed to the collection).</div><div>I'd suggest to instead listen to the property changed event on the OrderDetail EntityGroup. There, you'd add some logic to locate the parent Order of the OrderDetail changed and would manually raise the PropertyChanged on the Order.</div><div>&nbsp;</div><div>You can find more about EntityGroup events at <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/entity-&#101;vents#HEntityGroup&#101;vents" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/entity-events#HEntityGroupevents</a>.</div><div>&nbsp;</div><div>Regards,</div><div>&nbsp;&nbsp; Silvio.</div>]]>
   </description>
   <pubDate>Thu, 02 Aug 2012 11:36:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3563&amp;PID=14133#14133</guid>
  </item> 
  <item>
   <title>Child-Parent notifications. :    Hi.Which is your suggestion...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3563&amp;PID=14120#14120</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1114" rel="nofollow">rbautistaole</a><br /><strong>Subject:</strong> 3563<br /><strong>Posted:</strong> 31-Jul-2012 at 6:35pm<br /><br />Hi.<div>Which is your suggestion to resolve the next problem.</div><div>I have an Order and OrderDetail entities.</div><div>class Order </div><div>{</div><div>..</div><div>public RelatedEntityList&lt;OrderDetail&gt; Details{ get {return null}};</div><div>public decimal Total</div><div>{</div><div>get { return this.Details.Sum(Amount);</div><div>}</div><div>}</div><div>&nbsp;</div><div>class OrderDetail</div><div>{</div><div>public decimal Quantity..</div><div>public decimal Price..</div><div>public decimal Amount...</div><div>}</div><div>&nbsp;</div><div>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 </div><div><p><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">Detalles.CollectionChanged += </font></font><font color="#0000ff" size="2" face="C&#111;nsolas"><font color="#0000ff" size="2" face="C&#111;nsolas"><font color="#0000ff" size="2" face="C&#111;nsolas">new</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"> System.Collections.Specialized.</font></font><font color="#2b91af" size="2" face="C&#111;nsolas"><font color="#2b91af" size="2" face="C&#111;nsolas"><font color="#2b91af" size="2" face="C&#111;nsolas">NotifyCollectionChangedEventHandler</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">(Detalles_CollectionChanged); </font></font></p><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"><div>and suscribe to each OrderDetail PropertyChanged event to receive notifications about the changes, but it is not working.</div><div>&nbsp;</div><div>How do you resolve this problem?</div><div>&nbsp;</div></font></font></div><span style="font-size:10px"><br /><br />Edited by rbautistaole - 01-Aug-2012 at 11:06am</span>]]>
   </description>
   <pubDate>Tue, 31 Jul 2012 18:35:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3563&amp;PID=14120#14120</guid>
  </item> 
 </channel>
</rss>