예제 #1
0
 /// <summary>
 /// Add a named effector to this Form.
 /// </summary>
 /// <param name="name"></param>
 /// <param name="effector"></param>
 public void AddEffector(string name, Effector effector)
 {
     if (effector.Form == null)
         effector.AttachTo(this);
     namedEffectors[name] = effector;
 }
예제 #2
0
 /// <summary>
 /// Add an anonymous effector to this Form.
 /// </summary>
 /// <param name="effector"></param>
 public void AddEffector(Effector effector)
 {
     if (effector.Form == null)
         effector.AttachTo(this);
     anonymousEffectors.Add(effector);
 }