Exemple #1
0
 public static void EditGameConsoleControl(GameConsole gc)
 {
     using (CreateConsoleWindow editConsole = new CreateConsoleWindow(new CreateConsoleParameters(gc.Settings, 1), true))
     {
         if (editConsole.ShowDialog() == DialogResult.OK)
         {
             gc.RefreshSettings();
             SaveSetup();
         }
     }
 }
Exemple #2
0
 private void _addConsole_Click(object sender, EventArgs e)
 {
     try
     {
         if (setupConfiguration.NumberOfConsoles < 10)
         {
             CreateConsoleParameters ccp = new CreateConsoleParameters();
             ccp.Count = setupConfiguration.AvailableNumberIDs.Count;
             using (CreateConsoleWindow ccw = new CreateConsoleWindow(ccp))
             {
                 if (ccw.ShowDialog() == DialogResult.OK)
                 {
                     AddConsoles(ccp.Count, ccp.Setup);
                 }
             }
         }
         else
         {
             MessageBox.Show("You've reached the limit amount of Consoles");
         }
     } catch (Exception ex)
     { MessageLogManager.LogMessage("PBM  - MW ::::> Error failed to start Add Console:" + ex.Message); }
 }