AD
Administrator
Syncfusion Team
January 31, 2005 02:23 PM UTC
Hi Jose,
You could try providing a variant of the Diagram.LoadSoap(string fileName)/Diagram.LoadSoap(Stream streamin) methods so that the Diagram control''s attributes(the Diagram.Model, Diagram.View and Diagram.DiagramScript objects) are re-initialized only when you want them to. Adding a helper method that deserializes the provided soap stream, but returns without re-initializing the current instance of the diagram with the deserialized mode/view/diagramscript objects will let you test the validity of the serialized file.
Please refer to the Diagram.LoadSoap(Stream streamin) method in the ''..\Diagram.Windows\Src\Controls\Diagram.cs'' file for details on the deserializing process.
Thanks,
Prakash