Ejemplo n.º 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()));
        }
Ejemplo n.º 2
0
 public void SaveButtonTrigger(AbstractTrigger type)
 {
     trigger_user_control.Instance.Add(type);
 }