Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9448


Ignore:
Timestamp:
05/06/13 14:45:25 (12 years ago)
Author:
mkommend
Message:

#2016: Removed unused code in the BubbleChartview.

File:
1 edited

Legend:

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

    r9447 r9448  
    5656    private bool suppressUpdates = false;
    5757
    58     private const double transperencyExponent = 2.5;
    59 
    6058    private RunCollectionContentConstraint visibilityConstraint = new RunCollectionContentConstraint() { Active = true };
    6159
     
    716714    }
    717715
    718     private IRun runToHide = null;
    719716    private void ContextMenuStrip_Opening(object sender, System.ComponentModel.CancelEventArgs e) {
    720       var pos = Control.MousePosition;
    721       var chartPos = chart.PointToClient(pos);
    722 
    723       HitTestResult h = this.chart.HitTest(chartPos.X, chartPos.Y, ChartElementType.DataPoint);
    724       if (h.ChartElementType == ChartElementType.DataPoint) {
    725         runToHide = (IRun)((DataPoint)h.Object).Tag;
    726         hideRunsToolStripMenuItem.Visible = true;
    727       } else {
    728         runToHide = null;
    729         hideRunsToolStripMenuItem.Visible = false;
    730       }
     717      hideRunsToolStripMenuItem.Visible = selectedRuns.Any();
    731718    }
    732719
     
    749736      visibilityConstraint.Active = false;
    750737      if (!Content.Constraints.Contains(visibilityConstraint)) Content.Constraints.Add(visibilityConstraint);
    751       foreach (var run in selectedRuns) {
     738      foreach (var run in runs) {
    752739        visibilityConstraint.ConstraintData.Add(run);
    753740      }
Note: See TracChangeset for help on using the changeset viewer.