/// <summary> /// Initializes a new instance of the BaseShape class. /// </summary> /// <param name="shape">Visio shape on which it is based.</param> /// <param name="form">Form </param> /// <param name="attributes">Configuration attributes.</param> public BaseShape( object shape, XmlForm form, XmlElement attributes ) { _shape = (Shape) shape; _form = form; _attributes = attributes; _element = _attributes.Attributes[ "element" ].Value; _type = (ModelShapeType) Enum.Parse( typeof( ModelShapeType ), _attributes.Attributes[ "type" ].Value, true ); }
/// <summary> /// Initializes a new instance of the BaseShape class. /// </summary> /// <param name="shape">Visio shape on which it is based.</param> /// <param name="form">Form </param> /// <param name="attributes">Configuration attributes.</param> public BaseShape(object shape, XmlForm form, XmlElement attributes) { _shape = (Shape)shape; _form = form; _attributes = attributes; _element = _attributes.Attributes["element"].Value; _type = (ModelShapeType)Enum.Parse(typeof(ModelShapeType), _attributes.Attributes["type"].Value, true); }