示例#1
0
 public Game()
 {
     AppDomain.CurrentDomain.ProcessExit += ProcessExit;
     try
     {
         serverActions = new ServerActions();
         if (!serverActions.TestClientVersion())
         {
             MessageBox.Show("У вас устаревшая версия приложения! Скачайте новую");
             Environment.Exit(0);
         }
         Tables = new TablesList();
         CurrentTable = null;
         Player = null;
         Players = new PlayersList();
         Place = -1;
         Status = TableStatus.NONE;
         Player1Order = null;
         Player2Order = null;
         Player3Order = null;
         Player4Order = null;
         IsMakingMove = false;
         guestForm = new MainGuestForm(this);
         guestForm.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
         Environment.Exit(0);
     }
 }
示例#2
0
 //**********************************************************************************************************************************************************************************
 //                      Методы отображения графики
 //**********************************************************************************************************************************************************************************
 // Отображение гостевого экрана
 public void ShowGuestScreen()
 {
     guestForm = new MainGuestForm(this.Game);
     guestForm.Show();
 }