Example #1
0
 public bool IsEqual(Trigger other)
 {
     if (RoomInfo.Equals(other.RoomInfo) || RoomInfo.Equals2(other.RoomInfo))
     {
         return(true);
     }
     return(false);
 }
Example #2
0
        public bool IsTriggered(RoomInformation other)
        {
            if (HasEvent)
            {
                if (other.Equals(RoomInfo))
                {
                    return(true);
                }
            }
            else
            {
                if (other.Equals2(RoomInfo))
                {
                    return(true);
                }
            }

            return(false);
        }