Пример #1
0
 public WaitingRoom()
 {
     planningScreen = new PlanningScreen();
     planningScreen.Show();
     planningScreen.Hide();
     gameScreen = new GameScreen();
     gameScreen.Show();
     gameScreen.Hide();
     InitializeComponent();
 }
Пример #2
0
 public void MoveToPlanning()
 {
     if (gameScreen.InvokeRequired)
     {
         gameScreen.Invoke(new Action(() => { gameScreen.Hide(); }));
     }
     if (waitingRoom.InvokeRequired)
     {
         waitingRoom.Invoke(new Action(() => { waitingRoom.Hide(); }));
     }
     if (planningScreen.InvokeRequired)
     {
         planningScreen.Invoke(new Action(() => { planningScreen.Show(); }));
     }
 }