Changeset 985
- Timestamp:
- 12/12/08 19:35:06 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization.Test/LineChartTestForm.Designer.cs
r861 r985 25 25 private void InitializeComponent() { 26 26 this.lineChartGroupBox = new System.Windows.Forms.GroupBox(); 27 this.btnResetView = new System.Windows.Forms.Button(); 27 28 this.SuspendLayout(); 28 29 // … … 39 40 this.lineChartGroupBox.Text = "Line Chart"; 40 41 // 42 // btnResetView 43 // 44 this.btnResetView.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 45 this.btnResetView.Location = new System.Drawing.Point(544, 346); 46 this.btnResetView.Name = "btnResetView"; 47 this.btnResetView.Size = new System.Drawing.Size(75, 23); 48 this.btnResetView.TabIndex = 1; 49 this.btnResetView.Text = "Reset View"; 50 this.btnResetView.UseVisualStyleBackColor = true; 51 this.btnResetView.Click += new System.EventHandler(this.btnResetView_Click); 52 // 41 53 // LineChartTestForm 42 54 // … … 44 56 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 45 57 this.ClientSize = new System.Drawing.Size(631, 395); 58 this.Controls.Add(this.btnResetView); 46 59 this.Controls.Add(this.lineChartGroupBox); 47 60 this.Name = "LineChartTestForm"; … … 54 67 55 68 private System.Windows.Forms.GroupBox lineChartGroupBox; 69 private System.Windows.Forms.Button btnResetView; 56 70 57 71 } -
trunk/sources/HeuristicLab.Visualization.Test/LineChartTestForm.cs
r861 r985 5 5 public partial class LineChartTestForm : Form { 6 6 private ChartDataRowsModel model; 7 private IView view; 7 8 8 9 public LineChartTestForm() { … … 11 12 model = new ChartDataRowsModel(); 12 13 13 IView view = model.CreateView(); 14 15 view = model.CreateView(); 14 16 15 17 Control viewControl = (Control)view; … … 22 24 get { return model; } 23 25 } 26 27 private void btnResetView_Click(object sender, System.EventArgs e) { 28 LineChart lineChart = (LineChart)view; 29 lineChart.ResetView(); 30 } 24 31 } 25 32 } -
trunk/sources/HeuristicLab.Visualization/LineChart.cs
r984 r985 54 54 } 55 55 56 public void ResetView() { 57 zoomFullView = true; 58 ZoomToFullView(); 59 canvasUI1.Invalidate(); 60 } 61 56 62 #region Add-/RemoveItemEvents 57 63
Note: See TracChangeset
for help on using the changeset viewer.