コード例 #1
0
ファイル: FileManagerXML.cs プロジェクト: KeyleXiao/behaviac
 /// <summary>
 /// Initialises a property on a given attachment.
 /// </summary>
 /// <param name="xml">The XML element containing the attribute we want to get.</param>
 /// <param name="node">The attachment whose property we want to set.</param>
 /// <param name="property">The property on the attachment we want to set.</param>
 protected void InitProperty(XmlNode xml, Attachments.Attachment attach, DesignerPropertyInfo property)
 {
     string value;
     if (GetAttribute(xml, property.Property.Name, out value))
         property.SetValueFromString(attach, value);
 }
コード例 #2
0
ファイル: FileManagerXML.cs プロジェクト: 675492062/behaviac
        /// <summary>
        /// Initialises a property on a given attachment.
        /// </summary>
        /// <param name="xml">The XML element containing the attribute we want to get.</param>
        /// <param name="node">The attachment whose property we want to set.</param>
        /// <param name="property">The property on the attachment we want to set.</param>
        protected void InitProperty(List<Nodes.Node.ErrorCheck> result, XmlNode xml, Attachments.Attachment attach, DesignerPropertyInfo property)
        {
            string value;

            if (GetAttribute(xml, property.Property.Name, out value)) {
                property.SetValueFromString(result, attach, value);
            }
        }
コード例 #3
0
ファイル: FileManagerXML.cs プロジェクト: KeyleXiao/behaviac
 /// <summary>
 /// Initialises a property on a given node.
 /// </summary>
 /// <param name="xml">The XML element containing the attribute we want to get.</param>
 /// <param name="node">The node whose property we want to set.</param>
 /// <param name="property">The property on the node we want to set.</param>
 protected void InitProperty(XmlNode xml, Node node, DesignerPropertyInfo property)
 {
     string value;
     if (GetAttribute(xml, property.Property.Name, out value))
         property.SetValueFromString(node, value);
 }