/// <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; }
/// <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); }