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); } }