Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
        /// <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);
        }