- Timestamp:
- 01/14/11 05:34:43 (13 years ago)
- Location:
- branches/OKB
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKB
- Property svn:ignore
-
old new 1 1 *.suo 2 TestResults
-
- Property svn:ignore
-
branches/OKB/HeuristicLab.Clients.OKB-3.3/Views/DataTypeView.cs
r4558 r5295 52 52 if (Content == null) { 53 53 nameTextBox.Text = string.Empty; 54 typeNameTextBox.Text = string.Empty; 54 55 sqlNameComboBox.SelectedIndex = -1; 55 56 platformComboBox.SelectedIndex = -1; … … 60 61 } else { 61 62 nameTextBox.Text = Content.Name; 63 typeNameTextBox.Text = Content.TypeName; 62 64 sqlNameComboBox.Text = Content.SqlName; 63 65 platformComboBox.SelectedItem = platformComboBoxValues.FirstOrDefault(p => p.Id == Content.PlatformId); … … 70 72 nameTextBox.Enabled = Content != null; 71 73 nameTextBox.ReadOnly = ReadOnly; 74 typeNameTextBox.Enabled = Content != null; 75 typeNameTextBox.ReadOnly = ReadOnly; 72 76 sqlNameComboBox.Enabled = (Content != null) && !ReadOnly; 73 77 platformComboBox.Enabled = (Content != null) && !ReadOnly; … … 79 83 nameTextBox.Text = Content.Name; 80 84 Caption = Content.Name; 85 break; 86 case "TypeName": 87 typeNameTextBox.Text = Content.Name; 81 88 break; 82 89 case "SqlName": … … 101 108 Content.Name = nameTextBox.Text; 102 109 } 110 private void typeNameTextBox_KeyDown(object sender, KeyEventArgs e) { 111 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) 112 typeNameLabel.Focus(); // set focus on label to validate data 113 if (e.KeyCode == Keys.Escape) { 114 typeNameTextBox.Text = Content.TypeName; 115 typeNameLabel.Focus(); // set focus on label to validate data 116 } 117 } 118 private void typeNameTextBox_TextChanged(object sender, EventArgs e) { 119 if (typeNameTextBox.Text != Content.TypeName) 120 Content.TypeName = typeNameTextBox.Text; 121 } 103 122 private void sqlNameComboBox_SelectedValueChanged(object sender, EventArgs e) { 104 123 if (sqlNameComboBox.Text != Content.SqlName) {
Note: See TracChangeset
for help on using the changeset viewer.