Esempio n. 1
0
 private void ServerStateUpdated(ServerState state)
 {
     if (state == ServerState.InGame)
     {
         Hide();
         var mainForm = new Game();
         mainForm.SetClient(client);
         mainForm.AddMultiClientEvents(client);
         mainForm.ShowDialog();
         Show();
     }
     else if (state == ServerState.InLobby)
     {
         client.PrepareToReturnToLobby();
     }
 }