示例#1
0
        private void btnPaiban_Click(object sender, EventArgs e)
        {
            listPoint  = Orm.GetAdims_mzjld_Point();
            listRecord = Orm.GetAdims_MonitorRecord();
            backgroundWorker1.RunWorkerAsync();                                     // 运行 backgroundWorker 组件
            ProcessForm form = new ProcessForm(backgroundWorker1, listPoint.Count); // 显示进度条窗体

            form.ShowDialog(this);
            form.Close();
        }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            listPoint  = Orm.GetAdims_mzjld_Point();
            listRecord = Orm.GetAdims_MonitorRecord();
            backgroundWorker2.RunWorkerAsync();                                      // 运行 backgroundWorker 组件
            ProcessForm form = new ProcessForm(backgroundWorker2, listRecord.Count); // 显示进度条窗体

            form.ShowDialog(this);
            form.Close();
            tbCount.Text = realCount.ToString();
        }
示例#3
0
        private void DoBackWorkFromPaiban(EnumCreator.FlowType flowType)
        {
            dtHisInfo = _MigrationDal.GetPaiban();
            int rowCount = dtHisInfo.Rows.Count;

            this.backgroundWorker1.RunWorkerAsync();                              // 运行 backgroundWorker 组件
            ProcessForm form = new ProcessForm(this.backgroundWorker1, rowCount); // 显示进度条窗体

            form.ShowDialog(this);
            form.Close();
        }