Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9911


Ignore:
Timestamp:
08/27/13 12:19:41 (9 years ago)
Author:
ascheibe
Message:

#2031

  • renamed statistical run collection views
  • implemented RunCollection events in statistical testing view
  • incorporate content name into view caption
Location:
branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/ChartAnalysisView.cs

    r9908 r9911  
    8585        UpdateDataTableComboBox();
    8686      }
     87      UpdateCaption();
     88    }
     89
     90    private void UpdateCaption() {
     91      Caption = Content != null ? Content.OptimizerName + " Chart Analysis" : ViewAttribute.GetViewName(GetType());
    8792    }
    8893
  • branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/CorrelationView.cs

    r9713 r9911  
    3030
    3131namespace HeuristicLab.Analysis.Statistics {
    32   [View("RunCollection Correlations")]
     32  [View("Correlations")]
    3333  [Content(typeof(RunCollection), false)]
    3434  public sealed partial class CorrelationView : ItemView {
     
    6464        UpdateResultComboBox();
    6565      }
     66      UpdateCaption();
     67    }
     68
     69    private void UpdateCaption() {
     70      Caption = Content != null ? Content.OptimizerName + " Correlations" : ViewAttribute.GetViewName(GetType());
    6671    }
    6772
  • branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/SampleSizeInfluenceView.cs

    r9742 r9911  
    3434
    3535namespace HeuristicLab.Analysis.Statistics {
    36   [View("RunCollection Sample Size Influences")]
     36  [View("Sample Size Influence")]
    3737  [Content(typeof(RunCollection), false)]
    3838  public partial class SampleSizeInfluenceView : AsynchronousContentView {
     
    161161
    162162    private void UpdateCaption() {
    163       Caption = Content != null ? Content.OptimizerName + " Sample Size Influences" : ViewAttribute.GetViewName(GetType());
     163      Caption = Content != null ? Content.OptimizerName + " Sample Size Influence" : ViewAttribute.GetViewName(GetType());
    164164    }
    165165
  • branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/StatisticalTestingView.cs

    r9813 r9911  
    3131
    3232namespace HeuristicLab.Analysis.Statistics {
    33   [View("RunCollection Statistical Testing")]
     33  [View("Statistical Testing")]
    3434  [Content(typeof(RunCollection), false)]
    3535  public sealed partial class StatisticalTestingView : ItemView {
     
    5959        RebuildDataTable();
    6060      }
     61      UpdateCaption();
     62    }
     63
     64    private void UpdateCaption() {
     65      Caption = Content != null ? Content.OptimizerName + " Statistical Testing" : ViewAttribute.GetViewName(GetType());
    6166    }
    6267
     
    6469    protected override void RegisterContentEvents() {
    6570      base.RegisterContentEvents();
     71      Content.ItemsAdded += new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_ItemsAdded);
     72      Content.ItemsRemoved += new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_ItemsRemoved);
     73      Content.CollectionReset += new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_CollectionReset);
     74      Content.UpdateOfRunsInProgressChanged += Content_UpdateOfRunsInProgressChanged;
    6675    }
    6776
    6877    protected override void DeregisterContentEvents() {
    6978      base.DeregisterContentEvents();
     79      Content.ItemsAdded -= new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_ItemsAdded);
     80      Content.ItemsRemoved -= new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_ItemsRemoved);
     81      Content.CollectionReset -= new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_CollectionReset);
     82      Content.UpdateOfRunsInProgressChanged -= Content_UpdateOfRunsInProgressChanged;
     83    }
     84
     85    private void Content_CollectionReset(object sender, HeuristicLab.Collections.CollectionItemsChangedEventArgs<IRun> e) {
     86      RebuildDataTable();
     87    }
     88
     89    private void Content_ItemsRemoved(object sender, HeuristicLab.Collections.CollectionItemsChangedEventArgs<IRun> e) {
     90      RebuildDataTable();
     91    }
     92
     93    private void Content_ItemsAdded(object sender, HeuristicLab.Collections.CollectionItemsChangedEventArgs<IRun> e) {
     94      RebuildDataTable();
     95    }
     96
     97    void Content_UpdateOfRunsInProgressChanged(object sender, EventArgs e) {
     98      if (!Content.UpdateOfRunsInProgress) {
     99        RebuildDataTable();
     100      }
    70101    }
    71102    #endregion
Note: See TracChangeset for help on using the changeset viewer.