void threadProcessor_SavingActionExecuting(object sender, ActionExecutingEventArgs e) { if (this.InvokeRequired) { // We're on a thread other than the GUI thread this.Invoke(new MethodInvoker(() => threadProcessor_SavingActionExecuting(sender, e))); return; } }
void threadProcessor_IPExecuting(object sender, ActionExecutingEventArgs e) { if (this.InvokeRequired) { // We're on a thread other than the GUI thread this.Invoke(new MethodInvoker(() => threadProcessor_IPExecuting(sender, e))); return; } UpdateLogImportPublish(e.ActionStatus, "", GetListViewItemForLogUpdate(this.actionableListView, e.Action)); }
void UpdateLog(object sender, ActionExecutingEventArgs e) { if (this.InvokeRequired) { // We're on a thread other than the GUI thread this.Invoke(new MethodInvoker(() => UpdateLog(sender, e))); return; } UpdateLog(e.ActionStatus, e.RunTime, new TimeSpan(0, 0, 0), e.Message, GetListViewItem(e.Action)); }
void threadProcessor_Executing(object sender, ActionExecutingEventArgs e) { if (this.InvokeRequired) { // We're on a thread other than the GUI thread this.Invoke(new MethodInvoker(() => threadProcessor_Executing(sender, e))); return; } UpdateLog(e.ActionStatus, e.Message, GetListViewItemForLogUpdate(listViewResources, e.Action)); }
void threadProcessor_Executing(object sender, ActionExecutingEventArgs e) { if (this.InvokeRequired) { // We're on a thread other than the GUI thread try { this.Invoke(new MethodInvoker(() => threadProcessor_Executing(sender, e))); } catch (Exception) { return; } return; } UpdateLog(sender, e); }
void threadProcessor_CheckWebServiceExecuting(object sender, ActionExecutingEventArgs e) { if (this.InvokeRequired) { // We're on a thread other than the GUI thread try { this.Invoke(new MethodInvoker(() => threadProcessor_CheckWebServiceExecuting(sender, e))); } catch (Exception) { return; } return; } UpdateLog2(e.ActionStatus, "", GetTreeNodeForUpdate(e.Action)); // UpdateLog2(e.ActionStatus, "", GetListViewItemForLogUpdate(listViewWebApps, e.Action)); }