/// <summary> /// Save an exported image document (eg: png) into the file system. /// </summary> /// <param name="viewModel"></param> /// <returns></returns> public override bool ExecuteExport(object sender, ExecutedRoutedEventArgs e, string defaultFileName) { try { ExportCommandModel.ExportUMLToImage(this, defaultFileName); } catch (Exception ex) { _MsgBox.Show(ex, ex.Message, MiniUML.Framework.Local.Strings.STR_SaveFILE_MSG_CAPTION); } return(true); }
/// <summary> /// Save a document into the file system. /// </summary> /// <param name="viewModel"></param> /// <returns></returns> public override bool ExecuteExport(object sender, ExecutedRoutedEventArgs e, string defaultFileName) { ExportCommandModel.ExportUMLToImage(this, defaultFileName); return(true); }