Exemplo n.º 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";
     }
 }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        public override bool Equals(object obj)
        {
            Room room = (Room)obj;

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