Example #1
0
 public void LoadDrawing(XElement element)
 {
     try
     {
         Clear();
         CurrentDrawing.AddFromXml(element);
     }
     catch (Exception ex)
     {
         CurrentDrawing.RaiseError(this, ex);
     }
 }
 public virtual void LoadDrawing(XElement element, string fileName)
 {
     PointBase.SuppressAutoLabelPoints = true;
     try
     {
         Clear();
         Drawing.AddFromXml(element);
         Drawing.Name = fileName;
         Drawing.ClearStatus();
         Drawing.ActionManager.Clear();
     }
     catch (Exception ex)
     {
         Drawing.RaiseError(this, ex);
     }
     PointBase.SuppressAutoLabelPoints = false;
 }