public void LoadFromXDocument(XDocument xDoc, TalesNetwork network)
 {
     Gt.Controls.Diagramming.DiagramSerializer serializer =
         new Gt.Controls.Diagramming.DiagramSerializer(_diagram);
     XElement xDiagram = xDoc.Root != null ? xDoc.Root.Element("Gt.Diagram") : null;
     if (xDiagram != null)
     {
         serializer.LoadFromXDocument(xDoc);
         RaiseDiagramLoaded();
     }
     else
     {
         RaiseNeedBuildDiagram();
     }
 }
 /// <summary>
 /// Сохраняет диаграмму в XElement
 /// </summary>
 /// <param name="xDoc"></param>
 public void SaveToXDocument(XDocument xDoc)
 {
     Gt.Controls.Diagramming.DiagramSerializer serializer = new Gt.Controls.Diagramming.DiagramSerializer(_diagram);
     serializer.SaveToXDocument(xDoc);
 }