Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Setting properties of node after load/deserialize (Read 2049 times)
MUDO
Junior Member
**
Offline



Posts: 90
Joined: Nov 29th, 2008
Setting properties of node after load/deserialize
Oct 27th, 2009 at 7:31pm
Print Post  
Hi!

I have my own derived class LALA from TableNode.
I saved diagram with theses nodes to XML.

I released new version of software and I want to set some new properties for all nodes (for example table's font of caption).

How to do it immediately after loading every node from XML/deserializing from class LALA? Is there any event or sub in LALA which can I use? I dont want to iterate and check all tables in diagram after loading from XML/deserializing.


And one odd thing... If container has set Foldable propoerty to false and I save it
Me.fcDiagram.SaveToString(SaveToStringFormat.Xml, True)
after loading Foldable propoerty is true! Why? Are there any properties which are not saved???

Thx.

...MUDO...
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Setting properties of node after load/deserial
Reply #1 - Oct 28th, 2009 at 7:32am
Print Post  
Hi,

Override the OnLoad method, and don't forget to call the base implementation because TableNode does a lot there.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Setting properties of node after load/deserial
Reply #2 - Oct 29th, 2009 at 10:02am
Print Post  
Hi,

This should fix the Foldable problem:
https://mindfusion.eu/_beta/fcnet533_foldxml.zip

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
MUDO
Junior Member
**
Offline



Posts: 90
Joined: Nov 29th, 2008
Re: Setting properties of node after load/deserial
Reply #3 - Oct 29th, 2009 at 10:12am
Print Post  
Thx.

Simply said, after serialization and deserialization all properties have to be same, right? Theres only bug with Foldable propoerty.

This version of DLLs is beta veriosn or regulat v5.3.3?

...MUDO...
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Setting properties of node after load/deserial
Reply #4 - Oct 29th, 2009 at 1:51pm
Print Post  
Yes, they should be the same. We'll release 5.3.3 next week.

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