Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12613


Ignore:
Timestamp:
07/06/15 16:49:35 (9 years ago)
Author:
ascheibe
Message:

#2270 fixed NullReferenceException in statistical tests view by introducing a flag to suppress firing ui events

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis.Statistics.Views/3.3/StatisticalTestsView.cs

    r12599 r12613  
    4141    private double[][] data;
    4242    private bool suppressUpdates = false;
     43    private bool initializing = false;
    4344
    4445    public double SignificanceLevel {
     
    7778
    7879      if (Content != null) {
     80        initializing = true;
    7981        UpdateResultComboBox();
    8082        UpdateGroupsComboBox();
    8183        RebuildDataTable();
     84        FillCompComboBox();
     85        ResetUI();
     86        CalculateValues();
     87        initializing = false;
    8288      }
    8389      UpdateCaption();
     
    135141        if (!suppressUpdates) RebuildDataTable();
    136142      }
     143    }
     144
     145    private void openBoxPlotToolStripMenuItem_Click(object sender, EventArgs e) {
     146      RunCollectionBoxPlotView boxplotView = new RunCollectionBoxPlotView();
     147      boxplotView.Content = Content;
     148      boxplotView.SetXAxis(groupComboBox.SelectedItem.ToString());
     149      boxplotView.SetYAxis(resultComboBox.SelectedItem.ToString());
     150
     151      boxplotView.Show();
     152    }
     153
     154    private void groupCompComboBox_SelectedValueChanged(object sender, EventArgs e) {
     155      if (initializing) return;
     156      string curItem = (string)groupCompComboBox.SelectedItem;
     157      CalculatePairwise(curItem);
     158    }
     159
     160    private void resultComboBox_SelectedValueChanged(object sender, EventArgs e) {
     161      if (initializing) return;
     162      RebuildDataTable();
     163      ResetUI();
     164      CalculateValues();
     165    }
     166
     167    private void groupComboBox_SelectedValueChanged(object sender, EventArgs e) {
     168      if (initializing) return;
     169      RebuildDataTable();
     170      FillCompComboBox();
     171      ResetUI();
     172      CalculateValues();
    137173    }
    138174    #endregion
     
    272308      pValTextBox.Text = string.Empty;
    273309      equalDistsTextBox.Text = string.Empty;
    274     }
    275 
    276     private void resultComboBox_SelectedValueChanged(object sender, EventArgs e) {
    277       RebuildDataTable();
    278       ResetUI();
    279       CalculateValues();
    280     }
    281 
    282     private void groupComboBox_SelectedValueChanged(object sender, EventArgs e) {
    283       RebuildDataTable();
    284       FillCompComboBox();
    285       ResetUI();
    286       CalculateValues();
    287310    }
    288311
     
    484507      return newData;
    485508    }
    486 
    487     private void openBoxPlotToolStripMenuItem_Click(object sender, EventArgs e) {
    488       RunCollectionBoxPlotView boxplotView = new RunCollectionBoxPlotView();
    489       boxplotView.Content = Content;
    490       boxplotView.SetXAxis(groupComboBox.SelectedItem.ToString());
    491       boxplotView.SetYAxis(resultComboBox.SelectedItem.ToString());
    492 
    493       boxplotView.Show();
    494     }
    495 
    496     private void groupCompComboBox_SelectedValueChanged(object sender, EventArgs e) {
    497       string curItem = (string)groupCompComboBox.SelectedItem;
    498       CalculatePairwise(curItem);
    499     }
    500509  }
    501510}
Note: See TracChangeset for help on using the changeset viewer.