private void BeginImportingPublishingBrl(List <BaseAction> actions) { // Initialize thread if (threadProcessor == null) { threadProcessor = new ThreadProcessor(); threadProcessor.Completed += new EventHandler <CompletedEventArgs>(threadProcessor_Completed); threadProcessor.ActionExecuting += new EventHandler <ActionExecutingEventArgs>(threadProcessor_IPExecuting); threadProcessor.ActionExecuted += new EventHandler <ActionExecutedEventArgs>(threadProcessor_IPExecuted); } threadProcessor.AsyncRun(actions); }
private void BeginActionOnService(List <BaseAction> actions) { this.FormState = FormStateEnum.Processing; // Initialize thread if (threadProcessor == null) { threadProcessor = new ThreadProcessor(); threadProcessor.Completed += new EventHandler <CompletedEventArgs>(threadProcessor_Completed); threadProcessor.ActionExecuting += new EventHandler <ActionExecutingEventArgs>(threadProcessor_Executing); threadProcessor.ActionExecuted += new EventHandler <ActionExecutedEventArgs>(threadProcessor_Executed); } threadProcessor.AsyncRun(actions); }