Changeset 5006
- Timestamp:
- 12/01/10 10:30:49 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/LineChartView.Designer.cs ¶
r4651 r5006 63 63 this.chart.Size = new System.Drawing.Size(358, 225); 64 64 this.chart.TabIndex = 0; 65 this.chart.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.Chart_MouseDoubleClick); 65 66 // 66 // QualityLineChart67 // LineChartView 67 68 // 68 69 this.AllowDrop = true; … … 70 71 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 71 72 this.Controls.Add(this.chart); 72 this.Name = " QualityLineChart";73 this.Name = "LineChartView"; 73 74 this.Size = new System.Drawing.Size(358, 225); 74 75 ((System.ComponentModel.ISupportInitialize)(this.chart)).EndInit(); -
TabularUnified trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/LineChartView.cs ¶
r4651 r5006 121 121 } 122 122 } 123 124 private void Chart_MouseDoubleClick(object sender, MouseEventArgs e) { 125 HitTestResult result = chart.HitTest(e.X, e.Y); 126 if (result.ChartArea != null && (result.ChartElementType == ChartElementType.PlottingArea || 127 result.ChartElementType == ChartElementType.Gridlines) || 128 result.ChartElementType == ChartElementType.StripLines) { 129 foreach (var axis in result.ChartArea.Axes) 130 axis.ScaleView.ZoomReset(int.MaxValue); 131 } 132 } 123 133 #endregion 124 134
Note: See TracChangeset
for help on using the changeset viewer.