Changeset 9448
- Timestamp:
- 05/06/13 14:45:25 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBubbleChartView.cs
r9447 r9448 56 56 private bool suppressUpdates = false; 57 57 58 private const double transperencyExponent = 2.5;59 60 58 private RunCollectionContentConstraint visibilityConstraint = new RunCollectionContentConstraint() { Active = true }; 61 59 … … 716 714 } 717 715 718 private IRun runToHide = null;719 716 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(); 731 718 } 732 719 … … 749 736 visibilityConstraint.Active = false; 750 737 if (!Content.Constraints.Contains(visibilityConstraint)) Content.Constraints.Add(visibilityConstraint); 751 foreach (var run in selectedRuns) {738 foreach (var run in runs) { 752 739 visibilityConstraint.ConstraintData.Add(run); 753 740 }
Note: See TracChangeset
for help on using the changeset viewer.