Example #1
0
 private void ConfigForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (_shallSave && MessageService.AskQuestion("Save changes?"))
     {
         ExternalToolsCfg.Save();
         _shallSave   = false;
         DialogResult = DialogResult.OK;
     }
 }
Example #2
0
 private void btnOk_Click(object sender, EventArgs e)
 {
     if (_shallSave)
     {
         ExternalToolsCfg.Save();
         _shallSave   = false;
         DialogResult = DialogResult.OK;
     }
     else
     {
         DialogResult = DialogResult.Ignore;
     }
 }
Example #3
0
        private void LoadExternalToolDefs()
        {
            lb.Items.Clear();
            ClearControls();
            ExternalToolsCfg.Load();
            List <ExternalToolDef> current = ExternalToolsCfg.Current;

            foreach (ExternalToolDef def in current)
            {
                lb.Items.Add(def);
            }

            if (lb.Items.Count > 0)
            {
                lb.SelectedIndex = 0;
            }

            RenderExternalToolDef(CurrentDef);
        }
Example #4
0
 public override void Run()
 {
     ExternalToolsCfg.Load();
     RunToolForm.ShowForm(ExternalToolsCfg.Current);
 }
Example #5
0
 public bool SaveContent()
 {
     ExternalToolsCfg.Save();
     return(true);
 }