コード例 #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 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;
		}
コード例 #3
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;
			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;
		}
コード例 #4
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;
     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;
 }