Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Links heads are no more serialized? (Read 2874 times)
bogdip
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 70
Joined: Sep 8th, 2008
Links heads are no more serialized?
Jul 23rd, 2010 at 7:13am
Print Post  
Hi Stoyan,

Please help me out here, my link heads are not more visible after serializing and then deserializing the Diagram.
I can see the link heads when I add the tables into the diagram (db diagram) but if I save it and then reopen it from the saved file, the link heads are no longer visible.
I suspect it is related to the changes introduced by the 5.3.4 version as I didn't have this issue before updating to it. Is there a special way to serialize the link heads starting from this version?
I also tried the last released version, 5.3.5 but the problem is still there.

Thanks,
Bogdan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Links heads are no more serialized?
Reply #1 - Jul 23rd, 2010 at 8:41am
Print Post  
Hi Bogdan,

Are you using the standard serialization methods?

Stoyan
  
Back to top
 
IP Logged
 
bogdip
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 70
Joined: Sep 8th, 2008
Re: Links heads are no more serialized?
Reply #2 - Jul 23rd, 2010 at 10:03am
Print Post  
I'm using the Diagram.SaveToXml and Diagram.LoadFromXml methods.

I can send you a xml sample but I don't know where.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Links heads are no more serialized?
Reply #3 - Jul 23rd, 2010 at 10:11am
Print Post  
Please send it to support@mindfusion.eu.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Links heads are no more serialized?
Reply #4 - Jul 23rd, 2010 at 1:10pm
Print Post  
It seems your custom link class must register format id greater or equal than the base class for arrowhead shapes to be loaded, e.g. try:

RegisterItemClass(typeof(MyLink), "DiagramLink", 2);

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


I love YaBB 1G - SP1!

Posts: 70
Joined: Sep 8th, 2008
Re: Links heads are no more serialized?
Reply #5 - Jul 26th, 2010 at 8:27am
Print Post  
Thanks Stoyan, it worked like a charm! Smiley
« Last Edit: Jul 26th, 2010 at 10:13am by bogdip »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint