Esempio n. 1
0
 public void AddNewConfigFile()
 {
     try
     {
         FormNewConfig form = new FormNewConfig();
         if (form.ShowDialog() == DialogResult.OK)
         {
             _repository.AddNew(form.ConfigFileName);
             FilesChanged(this, EventArgs.Empty);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error " + ex.Message);
     }
 }
 public void AddNewConfigFile()
 {
     try
     {
         FormNewConfig form = new FormNewConfig();
         if (form.ShowDialog() == DialogResult.OK)
         {
             _repository.AddNew(form.ConfigFileName);
             FilesChanged(this, EventArgs.Empty);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error " + ex.Message);
     }
 }