Exemplo n.º 1
0
        public InputForm(EEDomain.ReadFromXml r)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            readXml = r;
            objectAttribute = new ObjectClass();
            this.propertyGrid1.SelectedObject = this.objectAttribute;

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }
 //Convert the current Diagram to differntXML type
 public void DiagramConvertXml()
 {
     //convert diagram to xmlwriter
     GOMLib.GOM_Diagram diagram = new GOMLib.GOM_Diagram(m_rgObjects, m_rgLinks);
     System.IO.StringWriter stringWriter = new System.IO.StringWriter();
     System.Xml.XmlTextWriter xmltextWriter = new System.Xml.XmlTextWriter(stringWriter);
     diagram.SaveToXML(xmltextWriter);
     string diagramString = stringWriter.ToString();
     //convert xmlWriter to different XML class ( EE)
     EEXmls = new EEDomain.ReadFromXml(diagramString);
 }