public XElement ToVisualizationXElement() { XElement element = ToXElement(); element.Add(new XAttribute("Position", PointExtensition.PointToString(Point1))); element.Add(new XAttribute("IsCollapse", IsCollapse.ToString())); return(element); }
public XElement ToXElement() { XElement element = new XElement("State"); element.Add(new XAttribute("Name", Name)); element.Add(new XAttribute("Position", PointExtensition.PointToString(Point1))); element.Add(new XAttribute("IsCollapse", IsCollapse.ToString())); return(element); }