Beispiel #1
0
 public WaitingRoom()
 {
     planningScreen = new PlanningScreen();
     planningScreen.Show();
     planningScreen.Hide();
     gameScreen = new GameScreen();
     gameScreen.Show();
     gameScreen.Hide();
     InitializeComponent();
 }
Beispiel #2
0
        public PlayerAppState(WaitingRoom waitingRoom)
        {
            privateKey = rsa.ToXmlString(true);
            publicKey  = rsa.ToXmlString(false);

            this.waitingRoom        = waitingRoom;
            waitingRoom.appState    = this;
            planningScreen          = waitingRoom.planningScreen;
            planningScreen.appState = this;
            gameScreen          = waitingRoom.gameScreen;
            gameScreen.appState = this;

            InitPlanningGrid();
        }