private void tplButton_Click(object sender, EventArgs e) { tplButton.Enabled = false; BusinessLayer.ProcessData(count, cancelObj[0].Token, (message) => UpdateTPLProgressBar(message)); ++count; }
/// <summary> /// Method will update UI very frequently with new task while the original task is running /// </summary> /// <param name="data"></param> /// <param name="updateUICallBack"></param> private void tplUpdateNewTaskStartButton_Click(object sender, EventArgs e) { tplUpdateNewTaskStartButton.Enabled = false; tplUpdateNewTaskProgressBar.Value = 0; BusinessLayer.PrepareLaunchSequenceForData(new object(), cancelObj[3].Token, (message, enableStartBtn) => UpdateTPLNewTaskProgressBar(message, enableStartBtn)); }
private void tplUpdateFrequentlyStartButton_Click(object sender, EventArgs e) { tplUpdateFrequentlyStartButton.Enabled = false; tplUpdateFrequentlyProgressBar.Value = 0; BusinessLayer.PrepareTransformationsForProcessing(new object(), cancelObj[2].Token, (message, enablebtn) => UpdateTPLFrequentlyProgressBar(message, enablebtn)); }
private void tplWhileRunStartButton_Click(object sender, EventArgs e) { tplWhileRunStartButton.Enabled = false; tplUpdateWhileRunProgressBar.Value = 0; BusinessLayer.PerformInternalValidationsOnData(new object(), cancelObj[1].Token, (message, enableBtn) => UpdateTPLwhileRunProgressBar(message, enableBtn)); }