Beispiel #1
0
        private void buttonStart_Click(object sender, EventArgs e)
        {
            if (backgroundWorkerPrepareTabele.IsBusy != true)
            {
                TableUtil.RowCountForPrepare = TableUtil.GetRowCountForPrepare();
                TableUtil.RowCountPrepared   = 0;

                this.textBoxRowCount.Text         = TableUtil.RowCountForPrepare.ToString();
                this.textBoxPreparedRowCount.Text = TableUtil.RowCountPrepared.ToString();
                TableUtil.StartTime        = System.DateTime.Now;
                this.textBoxStartTime.Text = TableUtil.StartTime.ToString();
                this.textBoxStopTime.Text  = TableUtil.ExpectedStopTime.ToString();

                backgroundWorkerPrepareTabele.RunWorkerAsync();

                this.buttonStart.Enabled = false;
                this.buttonStop.Enabled  = true;

                this.buttonStartSP.Enabled = false;
                this.buttonStopSP.Enabled  = false;
            }
        }