示例#1
0
        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();
        }
示例#2
0
        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();
        }