static public void SerializeToXML(ADT_Obj_Attribute_Form ADT_Obj) { XmlSerializer serializer = new XmlSerializer(typeof(ADT_Obj_Attribute_Form)); TextWriter textWriter = new StreamWriter("ADT_Obj.xml"); serializer.Serialize(textWriter, ADT_Obj); textWriter.Close(); }
/// <summary> /// Display a form where user can enter information for a ADT-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 getADTObjAttributesForm(Visio.Shape Shape) { Form attrEditorForm = new ADT_Obj_Attribute_Form(Shape); attrEditorForm.ShowDialog(); }