Beispiel #1
0
        protected override void splitPdfToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SplitPdfDialog dialog = new SplitPdfDialog();

            dialog.Owner = this;

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                this.Cursor = Cursors.WaitCursor;
                this.toolStripStatusLabel1.Text = Properties.Resources.SplitPDF_running;
                //this.pictureBox1.UseWaitCursor = true;
                this.textBox1.Cursor = Cursors.WaitCursor;
                this.toolStripProgressBar1.Enabled = true;
                this.toolStripProgressBar1.Visible = true;
                this.toolStripProgressBar1.Style   = ProgressBarStyle.Marquee;

                // Start the asynchronous operation.
                backgroundWorkerSplitPdf.RunWorkerAsync(dialog.Args);
            }
        }
Beispiel #2
0
        protected override void splitPdfToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SplitPdfDialog dialog = new SplitPdfDialog();
            dialog.Owner = this;

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                this.Cursor = Cursors.WaitCursor;
                this.toolStripStatusLabel1.Text = Properties.Resources.SplitPDF_running;
                //this.pictureBox1.UseWaitCursor = true;
                this.textBox1.Cursor = Cursors.WaitCursor;
                this.toolStripProgressBar1.Enabled = true;
                this.toolStripProgressBar1.Visible = true;
                this.toolStripProgressBar1.Style = ProgressBarStyle.Marquee;

                // Start the asynchronous operation.
                backgroundWorkerSplitPdf.RunWorkerAsync(dialog.Args);
            }
        }