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