Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/31/11 03:24:02 (14 years ago)
Author:
swagner
Message:

Worked on OKB (#1174)

Location:
branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3

    • Property svn:ignore
      •  

        old new  
        33*.user
        44HeuristicLabClientsOKBPlugin.cs
         5*.vs10x
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/RunCreation/Views/OKBAlgorithmView.cs

    r5667 r5902  
    8181      Content.Stopped -= new EventHandler(Content_Stopped);
    8282      Content.ProblemChanged -= new EventHandler(Content_ProblemChanged);
     83      Content.StoreRunsAutomaticallyChanged -= new EventHandler(Content_StoreRunsAutomaticallyChanged);
    8384      Content.StoreAlgorithmInEachRunChanged -= new EventHandler(Content_StoreAlgorithmInEachRunChanged);
    8485      base.DeregisterContentEvents();
     
    9596      Content.Stopped += new EventHandler(Content_Stopped);
    9697      Content.ProblemChanged += new EventHandler(Content_ProblemChanged);
     98      Content.StoreRunsAutomaticallyChanged += new EventHandler(Content_StoreRunsAutomaticallyChanged);
    9799      Content.StoreAlgorithmInEachRunChanged += new EventHandler(Content_StoreAlgorithmInEachRunChanged);
    98100    }
     
    106108        resultsView.Content = null;
    107109        runsView.Content = null;
     110        storeRunsAutomaticallyCheckBox.Checked = true;
    108111        storeAlgorithmInEachRunCheckBox.Checked = true;
    109112        executionTimeTextBox.Text = "-";
     
    116119        resultsView.Content = Content.Results.AsReadOnly();
    117120        runsView.Content = Content.Runs;
     121        storeRunsAutomaticallyCheckBox.Checked = Content.StoreRunsAutomatically;
    118122        storeAlgorithmInEachRunCheckBox.Checked = Content.StoreAlgorithmInEachRun;
    119123        executionTimeTextBox.Text = Content.ExecutionTime.ToString();
     
    132136      resultsView.Enabled = Content != null;
    133137      runsView.Enabled = Content != null;
     138      storeRunsAutomaticallyCheckBox.Enabled = Content != null && !ReadOnly;
    134139      storeAlgorithmInEachRunCheckBox.Enabled = Content != null && !ReadOnly;
    135140      executionTimeTextBox.Enabled = Content != null;
     
    196201      else
    197202        executionTimeTextBox.Text = Content == null ? "-" : Content.ExecutionTime.ToString();
     203    }
     204    private void Content_StoreRunsAutomaticallyChanged(object sender, EventArgs e) {
     205      if (InvokeRequired)
     206        Invoke(new EventHandler(Content_StoreRunsAutomaticallyChanged), sender, e);
     207      else
     208        storeRunsAutomaticallyCheckBox.Checked = Content.StoreRunsAutomatically;
    198209    }
    199210    private void Content_StoreAlgorithmInEachRunChanged(object sender, EventArgs e) {
     
    306317      }
    307318    }
     319    private void storeRunsAutomaticallyCheckBox_CheckedChanged(object sender, EventArgs e) {
     320      if (Content != null) Content.StoreRunsAutomatically = storeRunsAutomaticallyCheckBox.Checked;
     321    }
    308322    private void storeAlgorithmInEachRunCheckBox_CheckedChanged(object sender, EventArgs e) {
    309323      if (Content != null) Content.StoreAlgorithmInEachRun = storeAlgorithmInEachRunCheckBox.Checked;
Note: See TracChangeset for help on using the changeset viewer.