Free cookie consent management tool by TermsFeed Policy Generator

Changeset 15622


Ignore:
Timestamp:
01/17/18 11:29:03 (7 years ago)
Author:
fholzing
Message:

#2880: Removed now unnecessary workaround

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBoxPlotView.cs

    r15621 r15622  
    280280      double? yValue;
    281281
    282       if (!xAxisComboBox.DroppedDown)
    283         this.xAxisValue = (string)xAxisComboBox.SelectedItem;
    284       if (!yAxisComboBox.DroppedDown)
    285         this.yAxisValue = (string)yAxisComboBox.SelectedItem;
     282      this.xAxisValue = (string)xAxisComboBox.SelectedItem;
     283      this.yAxisValue = (string)yAxisComboBox.SelectedItem;
    286284
    287285      xValue = GetValue(run, this.xAxisValue);
     
    390388      Axis yAxis = this.chart.ChartAreas[BoxPlotChartAreaName].AxisY;
    391389      int axisDimensionCount = Enum.GetNames(typeof(AxisDimension)).Count();
    392       //mkommend: combobox.SelectedIndex could not be used as this changes during hovering over possible values
    393       var xSAxisSelectedIndex = xAxisValue == null ? 0 : xAxisComboBox.Items.IndexOf(xAxisValue);
    394       var ySAxisSelectedIndex = yAxisValue == null ? 0 : xAxisComboBox.Items.IndexOf(yAxisValue);
    395       SetCustomAxisLabels(xAxis, xSAxisSelectedIndex - axisDimensionCount);
    396       SetCustomAxisLabels(yAxis, ySAxisSelectedIndex - axisDimensionCount);
    397       if (xAxisValue != null)
    398         xAxis.Title = xAxisValue;
    399       if (yAxisValue != null)
    400         yAxis.Title = yAxisValue;
     390
     391      SetCustomAxisLabels(xAxis, xAxisComboBox.SelectedIndex - axisDimensionCount);
     392      SetCustomAxisLabels(yAxis, yAxisComboBox.SelectedIndex - axisDimensionCount);
     393
     394      xAxis.Title = (string)xAxisComboBox.SelectedItem;
     395      yAxis.Title = (string)yAxisComboBox.SelectedItem;
    401396    }
    402397
Note: See TracChangeset for help on using the changeset viewer.