Esempio n. 1
0
        public void ExportSourceMessageScript(bool allMessages)
        {
            var messageExporter = new ScriptExport();

            try
            {
                var exportCont = new ImportExportController(messageExporter,
                                                            allMessages
                        ? sourceConv.File.CompileFileText()
                        : sourceConv.File.MessageList[sourceConv.MessageIndex].CompileMessage(false));
                messageExporter.ShowDialog();
            }
            catch
            {
                MessageBox.Show("Nothing to export.", "Export Failed", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            finally
            {
                messageExporter.Dispose();
            }
        }
Esempio n. 2
0
        public void ExportMessageScript(bool allMessages)
        {
            var messageExporter = new ScriptExport();

            try
            {
                var exportCont = new ImportExportController(messageExporter,
                                                            allMessages
                        ? MainConversation.File.CompileFileText()
                        : MainConversation.File.MessageList[MainConversation.MessageIndex].CompileMessage(false));
                messageExporter.ShowDialog();
            }
            catch
            {
                //TODO(Robin): Better logging
                MessageBox.Show("Nothing to export.", "Export Failed", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            finally
            {
                messageExporter.Dispose();
            }
        }