Exemplo n.º 1
0
        private void bRemoveAllMacros_Click(object sender, EventArgs e)
        {
            LoggingForm logger = new LoggingForm();
            logger.Show(this);

            string excelFilePath = textBoxExcelFilePath.Text;

            ExcelOperator access = new ExcelOperator();
            access.AddCommand(new RemoveMacros(logger));
            access.invoke(excelFilePath, true);
        }
Exemplo n.º 2
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);
        }