示例#1
0
        private void btnJoinRoom_Click(object sender, EventArgs e)
        {
            JoinRoomView joinRoom = new JoinRoomView();

            joinRoom.Show();
            Hide();
        }
示例#2
0
        public void ChangeOfForm(Form actualForm, Forms formToGo)
        {
            switch (formToGo)
            {
            case Forms.accueil:
                HomeView home = new HomeView();
                home.Show();
                break;

            case Forms.createRoom:
                CreateRoomView createRoom = new CreateRoomView();
                createRoom.Show();
                break;

            case Forms.enterRoom:
                JoinRoomView joinRoom = new JoinRoomView();
                joinRoom.Show();
                break;

            case Forms.game:
                GameView game = new GameView();
                game.Show();
                break;
            }

            actualForm.Hide();
        }