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); }
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); }
void UpdateTaskRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { updateTask = null; }