예제 #1
0
        void UpdateJobDetailsTimerElapsed(object sender, EventArgs eventArgs)
        {
            if (updateTask != null)
            {
                return;
            }

            updateTask = new JobListDetailsUpdateWorker(Jobs, JobListManager);
            updateTask.RunWorkerCompleted += UpdateTaskRunWorkerCompleted;
            updateTask.RunWorkerAsync();
            P2PEditor.GuiLogMessage(Properties.Resources.Running_update_task_, NotificationLevel.Debug);
        }
예제 #2
0
        void UpdateJobDetailsTimerElapsed(object sender, EventArgs eventArgs)
        {
            if (!P2PManager.IsConnected || !IsVisible)
            {
                return;
            }
            if (updateTask != null)
            {
                return;
            }

            updateTask = new JobListDetailsUpdateWorker(Jobs, JobListManager);
            updateTask.RunWorkerCompleted += UpdateTaskRunWorkerCompleted;
            updateTask.RunWorkerAsync();
            P2PEditor.GuiLogMessage("Running update task.", NotificationLevel.Debug);
        }
예제 #3
0
 void UpdateTaskRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     updateTask = null;
 }