Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12077


Ignore:
Timestamp:
02/25/15 18:59:30 (10 years ago)
Author:
abeham
Message:

#2270: Added suppressUpdates check for Content_Reset events

Location:
trunk/sources
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs

    r12012 r12077  
    123123    }
    124124
    125     private void UpdateData() {
     125    protected virtual void UpdateData() {
    126126      rowsTextBox.Text = Content.Rows.ToString();
    127127      rowsTextBox.Enabled = true;
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBoxPlotView.cs

    r12012 r12077  
    122122      if (InvokeRequired)
    123123        Invoke(new EventHandler(Content_Reset), sender, e);
    124       else {
     124      else if (!suppressUpdates) {
    125125        UpdateDataPoints();
    126126        UpdateAxisLabels();
     
    376376      Axis yAxis = this.chart.ChartAreas[BoxPlotChartAreaName].AxisY;
    377377      int axisDimensionCount = Enum.GetNames(typeof(AxisDimension)).Count();
    378       //mkommend: combobox.SelectedIndex could not be used as this changes during hoovering over possible values
     378      //mkommend: combobox.SelectedIndex could not be used as this changes during hovering over possible values
    379379      var xSAxisSelectedIndex = xAxisValue == null ? 0 : xAxisComboBox.Items.IndexOf(xAxisValue);
    380380      var ySAxisSelectedIndex = yAxisValue == null ? 0 : xAxisComboBox.Items.IndexOf(yAxisValue);
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBubbleChartView.cs

    r12012 r12077  
    262262
    263263    private void Content_Reset(object sender, EventArgs e) {
     264      if (suppressUpdates) return;
    264265      if (InvokeRequired)
    265266        Invoke(new EventHandler(Content_Reset), sender, e);
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionTableView.cs

    r12012 r12077  
    117117    }
    118118
     119    protected override void UpdateData() {
     120      if (suppressUpdates) return;
     121      base.UpdateData();
     122    }
     123
    119124    protected override void UpdateColumnHeaders() {
    120125      HashSet<string> visibleColumnNames = new HashSet<string>(dataGridView.Columns.OfType<DataGridViewColumn>()
     
    145150      else {
    146151        suppressUpdates = Content.UpdateOfRunsInProgress;
    147         if (!suppressUpdates) UpdateRowAttributes();
     152        if (!suppressUpdates) {
     153          UpdateRowAttributes();
     154          UpdateData();
     155        }
    148156      }
    149157    }
Note: See TracChangeset for help on using the changeset viewer.