Inheritance: System.Windows.Controls.UserControl, IDisposable
Ejemplo n.º 1
0
 private void ShowHostGameDialog()
 {
     hostGameDialog = new HostGameSettings();
     hostGameDialog.Show(DialogPlaceHolder);
     hostGameDialog.OnClose += HostGameSettingsDialogOnClose;
     BorderButtons.IsEnabled = false;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 3
0
 private void ShowHostGameDialog()
 {
     hostGameDialog = new HostGameSettings();
     hostGameDialog.Show(DialogPlaceHolder);
     hostGameDialog.OnClose += HostGameSettingsDialogOnClose;
     BorderButtons.IsEnabled = false;
 }
Ejemplo n.º 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;
 }