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