Beispiel #1
0
 private void createRoom(object param)
 {
     if (Format != null && RoomName != null && !Format.Equals("") && !RoomName.Equals(""))
     {
         _Server.CreateRoom(name, Format, RoomName, 1); // 1 = public
     }
     else
     {
         errVisibility = Visibility.Visible;
         errMess       = "There is no optional fields";
     }
 }
Beispiel #2
0
        private bool MatchRoomName(Booking booking)
        {
            bool result = false;

            if (string.IsNullOrEmpty(RoomName))
            {
                result = true;
            }
            else if (RoomName.Equals(booking.RoomName, StringComparison.InvariantCultureIgnoreCase))
            {
                result = true;
            }

            return(result);
        }
Beispiel #3
0
        public override bool Equals(object obj)
        {
            Room room = (Room)obj;

            return(RoomName.Equals(room.RoomName));
        }