- Timestamp:
- 05/29/20 11:24:59 (5 years ago)
- Location:
- branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/IntervalCollectionView.Designer.cs
r17145 r17572 46 46 private void InitializeComponent() { 47 47 this.dataGridView = new System.Windows.Forms.DataGridView(); 48 this.groupBox1 = new System.Windows.Forms.GroupBox();49 48 ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit(); 50 this.groupBox1.SuspendLayout();51 49 this.SuspendLayout(); 52 50 // … … 55 53 this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; 56 54 this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill; 57 this.dataGridView.Location = new System.Drawing.Point(3, 16); 55 this.dataGridView.Location = new System.Drawing.Point(0, 0); 56 this.dataGridView.Margin = new System.Windows.Forms.Padding(4); 58 57 this.dataGridView.Name = "dataGridView"; 59 58 this.dataGridView.RowHeadersWidth = 120; 60 this.dataGridView.Size = new System.Drawing.Size( 476, 391);61 this.dataGridView.TabIndex = 0;59 this.dataGridView.Size = new System.Drawing.Size(643, 505); 60 this.dataGridView.TabIndex = 1; 62 61 this.dataGridView.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView_CellEndEdit); 63 62 this.dataGridView.CellValidating += new System.Windows.Forms.DataGridViewCellValidatingEventHandler(this.dataGridView_CellValidating); 64 63 this.dataGridView.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView_CellValueChanged); 65 64 // 66 // groupBox165 // IntervalCollectionView 67 66 // 68 this.groupBox1.Controls.Add(this.dataGridView); 69 this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill; 70 this.groupBox1.Location = new System.Drawing.Point(0, 0); 71 this.groupBox1.Name = "groupBox1"; 72 this.groupBox1.Size = new System.Drawing.Size(482, 410); 73 this.groupBox1.TabIndex = 1; 74 this.groupBox1.TabStop = false; 75 this.groupBox1.Text = "Intervals"; 76 // 77 // NamedIntervalsView 78 // 79 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 67 this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); 80 68 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 81 this.Controls.Add(this.groupBox1); 82 this.Name = "NamedIntervalsView"; 83 this.Size = new System.Drawing.Size(482, 410); 69 this.Controls.Add(this.dataGridView); 70 this.Margin = new System.Windows.Forms.Padding(4); 71 this.Name = "IntervalCollectionView"; 72 this.Size = new System.Drawing.Size(643, 505); 84 73 ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit(); 85 this.groupBox1.ResumeLayout(false);86 74 this.ResumeLayout(false); 87 75 … … 91 79 92 80 private System.Windows.Forms.DataGridView dataGridView; 93 private System.Windows.Forms.GroupBox groupBox1;94 81 } 95 82 } -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/IntervalCollectionView.cs
r17565 r17572 22 22 23 23 using System.Windows.Forms; 24 using HeuristicLab.Common;25 24 using HeuristicLab.MainForm; 26 25 using HeuristicLab.MainForm.WindowsForms; … … 116 115 parsedValue = double.Parse(gridData.ToString()); 117 116 } else { 118 parsedValue = (double) 117 parsedValue = (double)gridData; 119 118 } 120 119 … … 138 137 var lowerBound = double.Parse(dataGridView.Rows[e.RowIndex].Cells[0].Value.ToString()); 139 138 var upperBound = double.Parse(dataGridView.Rows[e.RowIndex].Cells[1].Value.ToString()); 140 139 141 140 if (e.ColumnIndex == 0 && value > upperBound || e.ColumnIndex == 1 && value < lowerBound) { 142 141 e.Cancel = true;
Note: See TracChangeset
for help on using the changeset viewer.