public WaitingRoom() { planningScreen = new PlanningScreen(); planningScreen.Show(); planningScreen.Hide(); gameScreen = new GameScreen(); gameScreen.Show(); gameScreen.Hide(); InitializeComponent(); }
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(); })); } }