Esempio n. 1
0
        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"));

        }
Esempio n. 2
0
 public void New()
 {
     IEditView editView = (IEditView)_viewFactory.Create("EditView");
     editView.EditMode = EditMode.New;
     if (editView.ShowDialog() == DialogResult.OK) UpdateView();
 }