public void Start(bool isGetPic, WorkerResultHandler resultHandler) { if (Worker.IsBusy) return; _resultHandler = resultHandler; string picName = isGetPic ? AppContext.Company.CompanyPhoto : string.Empty; Worker.RunWorkerAsync(new object[] { AppContext.Company.Id, picName }); }
public void Start(WorkerResultHandler resultHandler) { Start(false, resultHandler); }