Пример #1
0
 /// <summary>
 /// Copies data from another node attribute.
 /// </summary>
 /// <param name='att'>
 /// The attribute from which to copy.
 /// </param>
 public void CopyFrom(NodeTypeAttribute att)
 {
     name        = att.name;
     type        = att.type;
     required    = att.required;
     localizable = att.localizable;
     description = att.description;
 }
Пример #2
0
 /// <summary>
 ///  Copies data from another node set
 /// </summary>
 public void CopyFrom(ExtensionNodeType ntype)
 {
     base.CopyFrom(ntype);
     this.typeName       = ntype.TypeName;
     this.objectTypeName = ntype.ObjectTypeName;
     this.description    = ntype.Description;
     this.addinId        = ntype.AddinId;
     Attributes.Clear();
     foreach (NodeTypeAttribute att in ntype.Attributes)
     {
         NodeTypeAttribute catt = new NodeTypeAttribute();
         catt.CopyFrom(att);
         Attributes.Add(catt);
     }
 }