Beispiel #1
0
        static public void SerializeToXML(C_Obj_Attribute_Form C_Obj)
        {
            XmlSerializer serializer = new XmlSerializer(typeof(C_Obj_Attribute_Form));
            TextWriter    textWriter = new StreamWriter("C_Obj.xml");

            serializer.Serialize(textWriter, C_Obj);
            textWriter.Close();
        }
Beispiel #2
0
        /// <summary>
        /// Display a form where user can enter information for a C-Object
        /// attribute. Update the corresponding Shape with applicable info
        /// upon form close.
        /// </summary>
        /// <param name="Shape">
        /// The Shape to apply applicable info to.
        /// </param>
        internal void getCObjAttributesForm(Visio.Shape Shape)
        {
            Form attrEditorForm = new C_Obj_Attribute_Form(Shape);

            attrEditorForm.ShowDialog();
        }