public XElement ToVisualizationXElement()
        {
            XElement element = ToXElement();

            element.Add(new XAttribute("Position", PointExtensition.PointToString(Point1)));
            element.Add(new XAttribute("IsCollapse", IsCollapse.ToString()));
            return(element);
        }
예제 #2
0
        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);
        }