Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Identify Changes on Diagram (Read 1849 times)
SeppiK
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: May 15th, 2008
Identify Changes on Diagram
May 29th, 2008 at 10:21am
Print Post  
Hello,

I have the following problem.
I must identify when something changes in my diagram.
For everything exists an EventHandler, but not for my problem.
In theorie I must identify changes on my diagramItemsCollection... or?
I need it for identify, if I must save my diagram or not.
I will design it like the disk for saving in Word.

Greets

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Identify Changes on Diagram
Reply #1 - May 29th, 2008 at 1:30pm
Print Post  
Hi,

Cant you use the Diagram.Dirty property for that?

Stoyan
  
Back to top
 
IP Logged
 
SeppiK
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: May 15th, 2008
Re: Identify Changes on Diagram
Reply #2 - May 29th, 2008 at 3:45pm
Print Post  
I think so.

But easier is an EventHandler for the DiagramItemsCollection.
When an object in the Collection Change an Event must fired Wink

The Diagram.Dirty property must set manuly for each case. Or am I wrong?

I will code it with the Diagram.Dirty property.

Thankx for your quick support.

Greets Seppi
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Identify Changes on Diagram
Reply #3 - May 29th, 2008 at 5:23pm
Print Post  
The Diagram objects automatically sets its Dirty property when anything changes, and thus would require a save. Additionally, you get the DirtyChanged event raised when the Dirty value changes.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
SeppiK
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: May 15th, 2008
Re: Identify Changes on Diagram
Reply #4 - May 30th, 2008 at 6:42pm
Print Post  
Hi,

it works with the Diagram.Dirty property.
It works like my example I had give in my posting before.
It is extreme programming Wink After a break and new motivation I have solve my problem.

And it was very easy.

Thankx for your great support again

Greets Seppi
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint