De-Serialization Issue

I am creating a custom symbol and serializing it, when i de-serialize it the right click action doesnt do as it would in the unsaved version. see attached test app, its currently a bit rough around the edges. before saving if you select and right click the symbol and click Add link...Link the outline should trun green. This does not work and throws an error on a deserialized version of the diagram.

TAS_Diagram.zip

1 Reply

J. J.Nagarajan Syncfusion Team August 7, 2007 12:32 AM UTC

Hi Robin,

Thanks for your interest in Syncfusion product.

I was able to reproduce this issue. I have fixed this issue in your sample. You can do any action after the deserialization. Please refer to the modified code.

If m_OuterRect Is Nothing Then
Me.m_OuterRect = New Syncfusion.Windows.Forms.Diagram.RoundRect(0, 0, 60, 60, 15, MeasureUnits.Pixel)
Me.m_OuterRect.PinPoint = New PointF(40, 70)
End If
Select Case State
Case "Unplugged"
Me.m_OuterRect.FillStyle.Color = Color.Gray
Case "Connected"
Me.m_OuterRect.FillStyle.Color = Color.White
Case "Delivered"
Me.m_OuterRect.FillStyle.Color = Color.Yellow
Case "Acknowledged"
Me.m_OuterRect.FillStyle.Color = Color.Green
Case "TimedOut"
Me.m_OuterRect.FillStyle.Color = Color.Red
Case "Reset"
Me.m_OuterRect.FillStyle.Color = Color.White
End Select

I have attached the sample for your reference. You canb download the sample from the following page.

http://websamples.syncfusion.com/samples/Diagram.Windows/F66956/main.htm

Please refer to the sample and let me know if you have any questions.

Regards,
Nagaraj

Loader.
Up arrow icon