static public void ShowVariableForm() { var variableView = new VariablesForm(); VariablesPresenter variablesPresenter = new VariablesPresenter(_repository, variableView); variableView.Show(); }
internal void ShowVariablesForm() { if (_variablesForm == null || _variablesForm.IsDisposed) { //capture parameter file, to avoid editing by another user bool openedReadOnly = false; if (!InUseFileHandler.CaptureFile(new EMPath(FolderEuromodFiles).GetVarFilePath(true), ref openedReadOnly)) //set to true, if another user already captured the file { return; //file is captured by another user and the user decided to not open in read-only mode } _variablesForm = new EM_UI.VariablesAdministration.VariablesForm(GetVarConfigFacade()); _variablesForm._isReadOnly = openedReadOnly; } _variablesForm.Show(); _variablesForm.Activate(); }