private void AddRoomButton_Click(object sender, RoutedEventArgs e) { Room newRoom = new Room(0, 1, 1, 1, 1, 1, 1); Window addRoomWindow = new AddRoomWindow(newRoom, this); addRoomWindow.Show(); }
private void AddRoomButton_Click(object sender, RoutedEventArgs e) { int newRoomId = XApp.rooms.Count; Room newRoom = new Room(newRoomId); XApp.rooms.Add(newRoom); Window addRoomWindow = new AddRoomWindow(newRoom, this); addRoomWindow.Show(); }