Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Custom Table Node does not serialize property (Read 2182 times)
Seablade
YaBB Newbies
*
Offline



Posts: 9
Location: U.S.
Joined: Aug 12th, 2008
Custom Table Node does not serialize property
Aug 12th, 2008 at 7:18pm
Print Post  
Hi.

I'm using the trial version 5.

I have a derived TableNode class that has a custom property.  When I save the diagram to a stream  and then restore the diagram, the custom property has not been restored.

Is this a bug or is this designed behavior?  If it's designed behavior, how can I save custom data with my TableNode?

Thanks,
Mike

  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3390
Joined: Oct 19th, 2005
Re: Custom Table Node does not serialize property
Reply #1 - Aug 13th, 2008 at 8:01am
Print Post  
Hi,

Have you implemented the SaveTo and LoadFrom methods? See the IconNodes sample project for an example.

HTH
  
Back to top
 
IP Logged
 
Seablade
YaBB Newbies
*
Offline



Posts: 9
Location: U.S.
Joined: Aug 12th, 2008
Re: Custom Table Node does not serialize property
Reply #2 - Aug 27th, 2008 at 2:19pm
Print Post  
I finally found them but it took a while.  Once I did and implemented some code to save the custom variables, it seemed to serialize properly.

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