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"; } }
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); }
public override bool Equals(object obj) { Room room = (Room)obj; return(RoomName.Equals(room.RoomName)); }