Example #1
0
        private void buttonUpdate_Click(object sender, EventArgs e)
        {
            DisableUIControl();
            ICancelableForm fw     = new FormWait(this, GetDeliveredEnergyActiveRowNumber());
            Action          action = () =>
            {
                TaskUpdate(fw);
            };

            HelperInterruptibleWorker worker = new HelperInterruptibleWorker(this, fw);

            worker.ExecuteTask(action);
        }
Example #2
0
        private void buttonProcess_Click(object sender, EventArgs e)
        {
            DisableUIControl();
            ICancelableForm fw     = new FormWait(this, GetDataIntegrityActiveRowNumber());
            Action          action = () =>
            {
                TaskDataIntegrityProcess(fw);
            };

            HelperInterruptibleWorker worker = new HelperInterruptibleWorker(this, fw);

            worker.ExecuteTask(action);
        }