Changeset 4485
- Timestamp:
- 09/24/10 10:39:33 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Data.Views/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleValueView.Designer.cs
r3048 r4485 60 60 this.valueTextBox.Size = new System.Drawing.Size(194, 20); 61 61 this.valueTextBox.TabIndex = 1; 62 this.valueTextBox.Validated += new System.EventHandler(this.valueTextBox_Validated);63 62 this.valueTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.valueTextBox_KeyDown); 64 63 this.valueTextBox.Validating += new System.ComponentModel.CancelEventHandler(this.valueTextBox_Validating); 64 this.valueTextBox.Validated += new System.EventHandler(this.valueTextBox_Validated); 65 65 // 66 66 // errorProvider … … 77 77 this.valueLabel.TabIndex = 0; 78 78 this.valueLabel.Text = "&Value:"; 79 this.valueLabel.VisibleChanged += new System.EventHandler(this.valueLabel_VisibleChanged); 79 80 // 80 81 // StringConvertibleValueView … … 85 86 this.Controls.Add(this.valueTextBox); 86 87 this.Name = "StringConvertibleValueView"; 87 this.Size = new System.Drawing.Size(250, 38);88 this.Size = new System.Drawing.Size(250, 22); 88 89 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 89 90 this.ResumeLayout(false); -
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleValueView.cs
r3904 r4485 41 41 } 42 42 set { base.ReadOnly = value; } 43 } 44 45 public bool LabelVisible { 46 get { return valueLabel.Visible; } 47 set { valueLabel.Visible = value; } 43 48 } 44 49 … … 101 106 valueTextBox.Text = Content.GetValue(); 102 107 } 108 109 private void valueLabel_VisibleChanged(object sender, EventArgs e) { 110 if (valueLabel.Visible) 111 valueTextBox.Dock = DockStyle.None; 112 else 113 valueTextBox.Dock = DockStyle.Fill; 114 } 115 103 116 } 104 117 }
Note: See TracChangeset
for help on using the changeset viewer.