Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8090


Ignore:
Timestamp:
06/22/12 16:35:32 (12 years ago)
Author:
jkarder
Message:

#1751: fixed event handling

Location:
trunk/sources
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.Designer.cs

    r7967 r8090  
    365365      this.refreshAutomaticallyCheckBox.Text = "&Refresh automatically";
    366366      this.refreshAutomaticallyCheckBox.UseVisualStyleBackColor = true;
    367       this.refreshAutomaticallyCheckBox.Validated += new System.EventHandler(this.refreshAutomaticallyCheckBox_Validated);
     367      this.refreshAutomaticallyCheckBox.CheckedChanged += new System.EventHandler(this.refreshAutomaticallyCheckBox_CheckedChanged);
    368368      //
    369369      // infoGroupBox
  • trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs

    r7910 r8090  
    416416    }
    417417
    418     private void refreshAutomaticallyCheckBox_Validated(object sender, EventArgs e) {
     418    private void refreshAutomaticallyCheckBox_CheckedChanged(object sender, EventArgs e) {
    419419      if (Content != null) Content.RefreshAutomatically = refreshAutomaticallyCheckBox.Checked;
    420420    }
  • trunk/sources/HeuristicLab.Clients.Hive/3.3/RefreshableJob.cs

    r7782 r8090  
    519519    public event EventHandler HiveTasksChanged;
    520520    protected virtual void OnHiveTasksChanged() {
    521       if (jobResultPoller != null && jobResultPoller.IsPolling) {
    522         jobResultPoller.Stop();
    523         DeregisterResultPollingEvents();
    524       }
     521      StopResultPolling();
    525522      if (this.HiveTasks != null && this.HiveTasks.Count > 0 && this.GetAllHiveTasks().All(x => x.Task.Id != Guid.Empty)) {
    526523        if (IsFinished()) {
    527524          this.ExecutionState = Core.ExecutionState.Stopped;
    528525          this.RefreshAutomatically = false;
    529         }
    530 
    531         if (this.RefreshAutomatically) {
    532           StartResultPolling();
     526          if (jobResultPoller != null) DeregisterResultPollingEvents();
     527        } else {
     528          this.RefreshAutomatically = true;
    533529        }
    534530      }
Note: See TracChangeset for help on using the changeset viewer.