Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic DiagramNodeCollection (Read 1395 times)
mberger
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 44
Joined: Jan 6th, 2009
DiagramNodeCollection
Oct 10th, 2009 at 8:42am
Print Post  
Hi,

Im using some DiagramNodeCollections in my Application. Is it possible to firing an event if a node are added or deleted to this collections?

greeze Marco
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramNodeCollection
Reply #1 - Oct 10th, 2009 at 5:35pm
Print Post  
Hi Marco,

There's an internal constructor that can be used to make the collection raise events, so you could use it if you have the source code. Otherwise we'll make it public for the next release.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramNodeCollection
Reply #2 - Oct 11th, 2009 at 9:15am
Print Post  
Actually you can use for this purpose the ObservableCollection generic class from the System.Collections.ObjectModel namespace. Create an ObservableCollection<DiagramNode> instance and handle its CollectionChanged event. The Action event argument specifies whether an item is added to or removed from the collection.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint