public void DeleteRoom(string SelectedRoom) { var AllRooms = RoomRepo.LoadRooms(); foreach (var SingleRoom in AllRooms) { if (SingleRoom.RetrieveRoomName() == SelectedRoom) { RoomRepo.DeleteRoom(SelectedRoom); } } }