Esempio n. 1
0
        private void btnCreateRoom_Click(object sender, EventArgs e)
        {
            CreateRoomView createRoom = new CreateRoomView();

            createRoom.Show();
            Hide();
        }
Esempio n. 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();
        }