コード例 #1
0
        private void buttonCreateECHNotices_Click(object sender, EventArgs e)
        {
            if (checkBoxTestOnly.Checked)
            {
                // Moses Newman 11/9/2014 if test mode add test email address(s) to Email table.
                IACDataSetTableAdapters.EmailTableAdapter EmailTableAdapter = new IACDataSetTableAdapters.EmailTableAdapter();
                EmailTableAdapter.UpdateTestEmail(textBoxTestEmail.Text.TrimStart().TrimEnd());
                EmailTableAdapter.Dispose();
                EmailTableAdapter = null;
            }
            ldDueDate       = (DateTime)nullableDateTimePicker1.Value;
            lbSMS           = false;
            lsMergeFileName = (String)listBoxMergeFileName.Items[listBoxMergeFileName.SelectedIndex];
            if (comboBoxDayDue.Text.TrimEnd() == "")
            {
                lnDayDue = 0;
            }
            else
            {
                lnDayDue = Convert.ToInt32(comboBoxDayDue.Text);
            }
            MDIIAC2013 MDImain = (MDIIAC2013)MdiParent;

            lfrm   = new QueryProgress();
            worker = new BackgroundWorker();
            worker.WorkerReportsProgress = true;
            worker.DoWork             += new DoWorkEventHandler(worker_DoMailMerge);
            worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted);
            worker.ProgressChanged    += new ProgressChangedEventHandler(worker_ProgressChanged);
            worker.RunWorkerAsync();
            lfrm.Text             = "EFT Email Notices";
            lfrm.lblProgress.Text = "Creating EFT Email Notices";
            lfrm.ShowDialog();
            Clipboard.Clear();
        }
コード例 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            lnDayDue  = Convert.ToInt32(comboBoxDayDue.Text);
            ldDueDate = (DateTime)nullableDateTimePicker1.Value;
            lbSMS     = true;
            if (comboBoxDayDue.Text.TrimEnd() == "")
            {
                lnDayDue = 0;
            }
            else
            {
                lnDayDue = Convert.ToInt32(comboBoxDayDue.Text);
            }
            MDIIAC2013 MDImain = (MDIIAC2013)MdiParent;

            lfrm   = new QueryProgress();
            worker = new BackgroundWorker();
            worker.WorkerReportsProgress = true;
            worker.DoWork             += new DoWorkEventHandler(worker_DoMailMerge);
            worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted);
            worker.ProgressChanged    += new ProgressChangedEventHandler(worker_ProgressChanged);
            worker.RunWorkerAsync();
            lfrm.Text             = "EFT SMS Notices";
            lfrm.lblProgress.Text = "Creating SMS Notices";
            lfrm.ShowDialog();
        }
コード例 #3
0
        private void buttonPost_Click(object sender, EventArgs e)
        {
            MDIIAC2013 MDImain = (MDIIAC2013)MdiParent;

            lfrm   = new QueryProgress();
            worker = new BackgroundWorker();
            worker.WorkerReportsProgress = true;
            worker.DoWork             += new DoWorkEventHandler(worker_PostAddOns);
            worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted);
            worker.ProgressChanged    += new ProgressChangedEventHandler(worker_ProgressChanged);
            worker.RunWorkerAsync();
            lfrm.Text             = "Open Dealer AddOn Posting";
            lfrm.lblProgress.Text = "Posting Open Dealer AddOns";
            lfrm.ShowDialog();
        }