public void Edit() { IEditView editView = (IEditView)_viewFactory.Create("EditView"); if (_view.SelectedConfiguration != null) { editView.Configuration = _view.SelectedConfiguration; editView.EditMode = EditMode.Edit; editView.ShowDialog(); } else _view.ShowMessage(MessageType.Error, LocalizableStringHelper.GetLocalizableString("InvalidConfigurationError_Tittle"), LocalizableStringHelper.GetLocalizableString("InvalidConfigurationError_Text")); }
public void New() { IEditView editView = (IEditView)_viewFactory.Create("EditView"); editView.EditMode = EditMode.New; if (editView.ShowDialog() == DialogResult.OK) UpdateView(); }