Esempio n. 1
0
 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;
     }
 }
Esempio n. 2
0
 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));
 }
Esempio n. 3
0
        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));
        }
Esempio n. 4
0
        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));
        }
Esempio n. 5
0
        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);
        }
Esempio n. 6
0
        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));
        }