Exemple #1
0
 private void ShowConfigForm(int index)
 {
     if (configForm != null)
     {
         configForm.Activate();
     }
     else
     {
         configForm = new ConfigForm(controller, updateChecker, index);
         configForm.Show();
         configForm.Activate();
         configForm.BringToFront();
         configForm.FormClosed += configForm_FormClosed;
     }
 }
Exemple #2
0
 private void ShowConfigForm(bool addNode)
 {
     if (configForm != null)
     {
         configForm.Activate();
     }
     else
     {
         configForm = new ConfigForm(controller, updateChecker, addNode ? -1 : -2);
         configForm.Show();
         configForm.Activate();
         configForm.BringToFront();
         configForm.FormClosed += configForm_FormClosed;
     }
 }
 private void ShowConfigForm(bool addNode)
 {
     if (configForm != null)
     {
         configForm.Activate();
         if (addNode)
         {
             Configuration cfg = controller.GetConfiguration();
             configForm.SetServerListSelectedIndex(cfg.index + 1);
         }
     }
     else
     {
         configForm = new ConfigForm(controller, updateChecker, addNode ? -1 : -2);
         configForm.Show();
         configForm.Activate();
         configForm.BringToFront();
         configForm.FormClosed += configForm_FormClosed;
     }
 }
 private void ShowConfigForm()
 {
     if (configForm != null)
     {
         configForm.Activate();
     }
     else
     {
         configForm = new ConfigForm(controller, updateChecker);
         configForm.Show();
         configForm.Activate();
         configForm.BringToFront();
         configForm.FormClosed += configForm_FormClosed;
     }
 }