示例#1
0
        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()));
        }
示例#2
0
 public void SaveButtonTrigger(AbstractTrigger type)
 {
     trigger_user_control.Instance.Add(type);
 }