ProjToolV2.BackgroundExecutorWithStatus.ExecuteWorker C# (CSharp) Method

ExecuteWorker() public method

public ExecuteWorker ( System.Action funcToRun ) : void
funcToRun System.Action
return void
        public void ExecuteWorker(Action funcToRun)
        {
            TaskCancelled = false;
            _actionWorker.RunWorkerAsync(funcToRun);
        }

Usage Example

示例#1
0
 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);
 }
All Usage Examples Of ProjToolV2.BackgroundExecutorWithStatus::ExecuteWorker