Наследование: System.Windows.Controls.UserControl, IDisposable
Пример #1
0
 private void ShowHostGameDialog()
 {
     hostGameDialog = new HostGameSettings();
     hostGameDialog.Show(DialogPlaceHolder);
     hostGameDialog.OnClose += HostGameSettingsDialogOnClose;
     BorderButtons.IsEnabled = false;
 }
Пример #2
0
 private void HostGameSettingsDialogOnClose(object o, DialogResult dialogResult)
 {
     BorderButtons.IsEnabled = true;
     if (dialogResult == DialogResult.OK)
     {
         if (hostGameDialog.SuccessfulHost)
         {
             if (WindowManager.PreGameLobbyWindow == null)
             {
                 WindowManager.PreGameLobbyWindow = new PreGameLobbyWindow();
                 WindowManager.PreGameLobbyWindow.Setup(hostGameDialog.IsLocalGame, WindowManager.Main);
             }
         }
     }
     hostGameDialog.Dispose();
     hostGameDialog = null;
 }
Пример #3
0
 private void ShowHostGameDialog()
 {
     hostGameDialog = new HostGameSettings();
     hostGameDialog.Show(DialogPlaceHolder);
     hostGameDialog.OnClose += HostGameSettingsDialogOnClose;
     BorderButtons.IsEnabled = false;
 }
Пример #4
0
 private void HostGameSettingsDialogOnClose(object o, DialogResult dialogResult)
 {
     BorderButtons.IsEnabled = true;
     if (dialogResult == DialogResult.OK)
     {
         if (hostGameDialog.SuccessfulHost)
         {
             if (WindowManager.PreGameLobbyWindow == null)
             {
                 WindowManager.PreGameLobbyWindow = new PreGameLobbyWindow();
                 WindowManager.PreGameLobbyWindow.Setup(hostGameDialog.IsLocalGame, WindowManager.Main);
             }
         }
     }
     hostGameDialog.Dispose();
     hostGameDialog = null;
 }