Crainiate Open Diagram 5.0 Diagram Load Issue ....

Aug 13, 2012 at 2:00 AM

hi 

I'm C# .Net Developer !! 

I'm read http://opendiagram.codeplex.com/discussions/291309   and follow  code ..

saving  diagram  success !!

but saving a little ploblem  

 

1. Connector  class is not Serialization !!  New Class file   need.... 

Are there plans to add ISerializationSurrogate classes for Connector?

2. Diagram Load fail .. 

 

Append my code 

saving  Diagram Code 

  private void button3_Click(object sender, EventArgs e)       

{            Document document = new Document(diagram1.Controller.Model);
            document.Save(Application.StartupPath + "\\test.xml", System.Data.SerializationFormat.Xml);       

}

 

load Diagram 

  private void button2_Click(object sender, EventArgs e)            

 

          string path = string.Empty;

           Document myDiagram = new Document(this.diagram1.Controller.Model);                               myDiagram.LoadDdiagram(Application.StartupPath + "\\test.xml",System.Data.SerializationFormat.Xml);           

diagram1.Refresh();           

diagram1.Controller.Refresh();       

}


what Problem my  code ??

Please help me!!