예제 #1
0
 /// <summary>
 /// Copies data from another condition type definition
 /// </summary>
 /// <param name='cond'>
 /// Condition from which to copy
 /// </param>
 public void CopyFrom(ConditionTypeDescription cond)
 {
     id          = cond.id;
     typeName    = cond.typeName;
     addinId     = cond.AddinId;
     description = cond.description;
 }
예제 #2
0
 /// <summary>
 /// Copies another extension point.
 /// </summary>
 /// <param name='ep'>
 /// Extension point from which to copy.
 /// </param>
 public void CopyFrom(ExtensionPoint ep)
 {
     path = ep.path;
     name = ep.name;
     defaultInsertBefore = ep.defaultInsertBefore;
     defaultInsertAfter  = ep.defaultInsertAfter;
     description         = ep.description;
     NodeSet.CopyFrom(ep.NodeSet);
     Conditions.Clear();
     foreach (ConditionTypeDescription cond in ep.Conditions)
     {
         ConditionTypeDescription cc = new ConditionTypeDescription();
         cc.CopyFrom(cond);
         Conditions.Add(cc);
     }
     Addins.Clear();
     foreach (string s in ep.Addins)
     {
         Addins.Add(s);
     }
     rootAddin = ep.rootAddin;
 }