상속: 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;
 }