public void SaveDocumentAs() { if (_document.Fractals.Count == 0) { return; } string filePath; bool ok = _mainView.AskForFilePathToSave(out filePath); if (ok) { try { _document.Save(filePath); } catch (Exception e) { _mainView.ShowMessageBox(e.Message); } } }