Example #1
0
        public Form1()
        {
            InitializeComponent();
            radioButtonSplit.Checked              = true;
            backgroundWorker1.DoWork             += new DoWorkEventHandler(backgroundWorker1_DoWork);
            backgroundWorker1.RunWorkerCompleted += new RunWorkerCompletedEventHandler(backgroundWorker1_RunWorkerCompleted);
            Form1.CheckForIllegalCrossThreadCalls = false;
            ExcelHandlercs handler = new ExcelHandlercs();

            handler.KillProcesses("EXCEL");
            buttonLShowLog.Visible = true;
        }
Example #2
0
        void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
        {
            panel1.Enabled = false;
            ExcelHandlercs handler = new ExcelHandlercs();

            handler.InformationDownloadEvent += new InformationDownloadHandler(handler_InformationDownloadEvent);
            if (radioButtonSplit.Checked == true)
            {
                LogResult += "\n\n" + handler.ReadBrochures(textBoxInput.Text, textBoxWSName.Text);
                BrochuresCollection bc = BrochuresCollection.Create();
                LogResult += "\n\n" + handler.WriteBrochures(textBoxOutput.Text);
            }
            else
            {
                LogResult += handler.Merge(textBoxInput.Text, textBoxOutput.Text);
            }
        }
Example #3
0
        private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {
            ExcelHandlercs handler = new ExcelHandlercs();

            handler.KillProcesses("EXCEL");
        }