Changeset 1343 for trunk/sources/HeuristicLab.Visualization/Options
- Timestamp:
- 03/13/09 19:18:21 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Visualization/Options
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/Options/OptionsDialog.Designer.cs
r1342 r1343 48 48 this.tpXAxis = new System.Windows.Forms.TabPage(); 49 49 this.btnChangeXAxisFont = new System.Windows.Forms.Button(); 50 this.tpYAxes = new System.Windows.Forms.TabPage(); 51 this.dataRowsFlowLayout = new System.Windows.Forms.FlowLayoutPanel(); 50 52 this.tpTitle.SuspendLayout(); 51 53 this.tabPage2.SuspendLayout(); … … 54 56 this.Optionstabs.SuspendLayout(); 55 57 this.tpXAxis.SuspendLayout(); 58 this.tpYAxes.SuspendLayout(); 56 59 this.SuspendLayout(); 57 60 // … … 274 277 this.Optionstabs.Controls.Add(this.tpTitle); 275 278 this.Optionstabs.Controls.Add(this.tpXAxis); 279 this.Optionstabs.Controls.Add(this.tpYAxes); 276 280 this.Optionstabs.Location = new System.Drawing.Point(0, 1); 277 281 this.Optionstabs.Name = "Optionstabs"; … … 299 303 this.btnChangeXAxisFont.UseVisualStyleBackColor = true; 300 304 this.btnChangeXAxisFont.Click += new System.EventHandler(this.btnChangeXAxisFont_Click); 305 // 306 // tpYAxes 307 // 308 this.tpYAxes.Controls.Add(this.dataRowsFlowLayout); 309 this.tpYAxes.Location = new System.Drawing.Point(4, 22); 310 this.tpYAxes.Name = "tpYAxes"; 311 this.tpYAxes.Padding = new System.Windows.Forms.Padding(3); 312 this.tpYAxes.Size = new System.Drawing.Size(284, 199); 313 this.tpYAxes.TabIndex = 4; 314 this.tpYAxes.Text = "Y-Axes"; 315 this.tpYAxes.UseVisualStyleBackColor = true; 316 // 317 // dataRowsFlowLayout 318 // 319 this.dataRowsFlowLayout.Dock = System.Windows.Forms.DockStyle.Fill; 320 this.dataRowsFlowLayout.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; 321 this.dataRowsFlowLayout.Location = new System.Drawing.Point(3, 3); 322 this.dataRowsFlowLayout.Name = "dataRowsFlowLayout"; 323 this.dataRowsFlowLayout.Size = new System.Drawing.Size(278, 193); 324 this.dataRowsFlowLayout.TabIndex = 0; 301 325 // 302 326 // OptionsDialog … … 323 347 this.Optionstabs.ResumeLayout(false); 324 348 this.tpXAxis.ResumeLayout(false); 349 this.tpYAxes.ResumeLayout(false); 325 350 this.ResumeLayout(false); 326 351 … … 353 378 private System.Windows.Forms.TabPage tpXAxis; 354 379 private System.Windows.Forms.Button btnChangeXAxisFont; 380 private System.Windows.Forms.TabPage tpYAxes; 381 private System.Windows.Forms.FlowLayoutPanel dataRowsFlowLayout; 355 382 } 356 383 } -
trunk/sources/HeuristicLab.Visualization/Options/OptionsDialog.cs
r1342 r1343 23 23 24 24 public IList<int> GetThicknesses() { 25 return new List<int> {0, 1, 2, 3, 4, 5, 6, 7, 8};25 return new List<int>(new int[] {0, 1, 2, 3, 4, 5, 6, 7, 8}); 26 26 } 27 27 28 28 public IList<DrawingStyle> GetStyles() { 29 return new List<DrawingStyle> {DrawingStyle.Solid, DrawingStyle.Dashed};29 return new List<DrawingStyle>(new DrawingStyle[] {DrawingStyle.Solid, DrawingStyle.Dashed}); 30 30 } 31 31 … … 39 39 LineSelectCB.SelectedIndex = 0; 40 40 LineSelectCB_SelectedIndexChanged(this, null); 41 } 42 43 InitTabPageYAxes(); 44 } 45 46 private void InitTabPageYAxes() { 47 for (int i = 0; i < model.Rows.Count; i++) { 48 IDataRow row = model.Rows[i]; 49 50 CheckBox chkbox = new CheckBox(); 51 chkbox.Text = row.Label; 52 chkbox.Checked = row.ShowYAxis; 53 chkbox.CheckedChanged += delegate { row.ShowYAxis = chkbox.Checked; }; 54 55 dataRowsFlowLayout.Controls.Add(chkbox); 41 56 } 42 57 }
Note: See TracChangeset
for help on using the changeset viewer.