public bool Equals(AbstractTrigger other) { //Check whether the compared object is null. if (Object.ReferenceEquals(other, null)) { return(false); } //Check whether the compared object references the same data. if (Object.ReferenceEquals(this, other)) { return(true); } //Check whether the products' properties are equal. return(GetActionName().Equals(other.GetActionName())); }
public void SaveButtonTrigger(AbstractTrigger type) { trigger_user_control.Instance.Add(type); }