Example #1
0
        private void buttonDoExport_Click(object sender, EventArgs e)
        {
            LoggingForm logger = new LoggingForm();
            logger.Show(this);

            string excelFilePath = textBoxExcelFilePath.Text;
            string codeFolderPath = GetMacroFolderPath(true);

            MacroEnv env = new MacroEnv(codeFolderPath);

            ExcelOperator access = new ExcelOperator();
            access.AddCommand(new ExportMacros(logger, env, cbOverrideExport.Checked));
            //access.AddCommand(new RemoveMacros(null));
            access.invoke(excelFilePath, false);
        }
Example #2
0
 public ExportMacros(ILogger logger, MacroEnv env, bool doOverride)
     : base(logger)
 {
     this.env = env;
     this.doOverride = doOverride;
 }