Inheritance: 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;
 }