/// <summary> /// Save a document into the file system. /// </summary> /// <param name="viewModel"></param> /// <returns></returns> public override bool ExecuteSave(string filePath) { this.prop_DocumentFilePath = filePath; try { // Save document to the existing file. _DataModel.Save(filePath); return(true); } catch (Exception ex) { _MsgBox.Show(ex, string.Format(MiniUML.Framework.Local.Strings.STR_SaveFILE_MSG, filePath), MiniUML.Framework.Local.Strings.STR_SaveFILE_MSG_CAPTION); } return(false); }
/// <summary> /// Save a document into the file system. /// </summary> /// <param name="viewModel"></param> /// <returns></returns> public override bool ExecuteSave(string filePath) { this.prop_DocumentFilePath = filePath; try { // Save document to the existing file. _DataModel.Save(filePath); return(true); } catch (Exception ex) { var msgBox = ServiceLocator.Current.GetInstance <IMessageBoxService>(); msgBox.Show(ex, string.Format(MiniUML.Framework.Local.Strings.STR_SaveFILE_MSG, filePath), MiniUML.Framework.Local.Strings.STR_SaveFILE_MSG_CAPTION); } return(false); }