public void OpenSBMLModel() { bool readyForOpen = CloseProject(); if (!readyForOpen) { return; } string fileName = _dialogCreator.AskForFileToOpen(AppConstants.Dialog.LoadSBMLProject, AppConstants.Filter.SBML_MODEL_FILE_FILTER, Constants.DirectoryKey.MODEL_PART); if (fileName.IsNullOrEmpty()) { return; } _context.NewProject(); _context.AddToHistory(_sbmlTask.ImportModelFromSBML(fileName, _context.CurrentProject)); notifyProjectLoaded(); }
protected override void Because() { _sbmlTask.ImportModelFromSBML(_fileName, _moBiProject); }