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); }
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); }