public ExecuteWorker ( System.Action funcToRun ) : void | ||
funcToRun | System.Action | |
return | void |
public void ExecuteWorker(Action funcToRun)
{
TaskCancelled = false;
_actionWorker.RunWorkerAsync(funcToRun);
}
private void BTN_ChangeOwner_Click(object sender, EventArgs e) { if (LV_Projects.SelectedItems.Count <= 0 || LV_EnterpiseResources.SelectedItems.Count <= 0) return; _bgeProject = new BackgroundExecutorWithStatus(TB_Status, "Updating Project owner of the selected project"); _bgws.Add(_bgeProject); _bgeProject.ExecuteWorker(UpdateProjectOwner); }