Changeset 18166
- Timestamp:
- 12/26/21 20:49:51 (3 years ago)
- Location:
- trunk
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Clients.OKB.Views/3.3/Query/Views/OrdinalComparisonDateTimeFilterView.cs
r17180 r18166 52 52 53 53 private void valueTextBox_KeyDown(object sender, KeyEventArgs e) { 54 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) 54 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) { 55 55 label.Focus(); // set focus on label to validate data 56 if (e.KeyCode == Keys.Escape) { 56 e.SuppressKeyPress = true; 57 } else if (e.KeyCode == Keys.Escape) { 57 58 valueTextBox.Text = Content.Value.ToString(); 58 59 label.Focus(); // set focus on label to validate data 60 e.SuppressKeyPress = true; 59 61 } 60 62 } -
trunk/HeuristicLab.Clients.OKB.Views/3.3/Query/Views/OrdinalComparisonDoubleFilterView.cs
r17180 r18166 51 51 52 52 private void valueTextBox_KeyDown(object sender, KeyEventArgs e) { 53 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) 53 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) { 54 54 label.Focus(); // set focus on label to validate data 55 if (e.KeyCode == Keys.Escape) { 55 e.SuppressKeyPress = true; 56 } else if (e.KeyCode == Keys.Escape) { 56 57 valueTextBox.Text = Content.Value.ToString(); 57 58 label.Focus(); // set focus on label to validate data 59 e.SuppressKeyPress = true; 58 60 } 59 61 } -
trunk/HeuristicLab.Clients.OKB.Views/3.3/Query/Views/OrdinalComparisonFloatFilterView.cs
r17180 r18166 51 51 52 52 private void valueTextBox_KeyDown(object sender, KeyEventArgs e) { 53 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) 53 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) { 54 54 label.Focus(); // set focus on label to validate data 55 if (e.KeyCode == Keys.Escape) { 55 e.SuppressKeyPress = true; 56 } else if (e.KeyCode == Keys.Escape) { 56 57 valueTextBox.Text = Content.Value.ToString(); 57 58 label.Focus(); // set focus on label to validate data 59 e.SuppressKeyPress = true; 58 60 } 59 61 } -
trunk/HeuristicLab.Clients.OKB.Views/3.3/Query/Views/OrdinalComparisonIntFilterView.cs
r17180 r18166 51 51 52 52 private void valueTextBox_KeyDown(object sender, KeyEventArgs e) { 53 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) 53 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) { 54 54 label.Focus(); // set focus on label to validate data 55 if (e.KeyCode == Keys.Escape) { 55 e.SuppressKeyPress = true; 56 } else if (e.KeyCode == Keys.Escape) { 56 57 valueTextBox.Text = Content.Value.ToString(); 57 58 label.Focus(); // set focus on label to validate data 59 e.SuppressKeyPress = true; 58 60 } 59 61 } -
trunk/HeuristicLab.Clients.OKB.Views/3.3/Query/Views/OrdinalComparisonLongFilterView.cs
r17180 r18166 51 51 52 52 private void valueTextBox_KeyDown(object sender, KeyEventArgs e) { 53 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) 53 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) { 54 54 label.Focus(); // set focus on label to validate data 55 if (e.KeyCode == Keys.Escape) { 55 e.SuppressKeyPress = true; 56 } else if (e.KeyCode == Keys.Escape) { 56 57 valueTextBox.Text = Content.Value.ToString(); 57 58 label.Focus(); // set focus on label to validate data 59 e.SuppressKeyPress = true; 58 60 } 59 61 } -
trunk/HeuristicLab.Clients.OKB.Views/3.3/Query/Views/OrdinalComparisonPercentFilterView.cs
r17180 r18166 58 58 59 59 private void valueTextBox_KeyDown(object sender, KeyEventArgs e) { 60 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) 60 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) { 61 61 label.Focus(); // set focus on label to validate data 62 if (e.KeyCode == Keys.Escape) { 62 e.SuppressKeyPress = true; 63 } else if (e.KeyCode == Keys.Escape) { 63 64 valueTextBox.Text = Content.Value.ToString(); 64 65 label.Focus(); // set focus on label to validate data 66 e.SuppressKeyPress = true; 65 67 } 66 68 } -
trunk/HeuristicLab.Clients.OKB.Views/3.3/Query/Views/OrdinalComparisonTimeSpanFilterView.cs
r17180 r18166 59 59 60 60 private void valueTextBox_KeyDown(object sender, KeyEventArgs e) { 61 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) 61 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) { 62 62 label.Focus(); // set focus on label to validate data 63 if (e.KeyCode == Keys.Escape) { 63 e.SuppressKeyPress = true; 64 } else if (e.KeyCode == Keys.Escape) { 64 65 valueTextBox.Text = Content.Value.ToString(); 65 66 label.Focus(); // set focus on label to validate data 67 e.SuppressKeyPress = true; 66 68 } 67 69 } -
trunk/HeuristicLab.Clients.OKB.Views/3.3/Query/Views/StringComparisonAvailableValuesFilterView.cs
r17180 r18166 82 82 83 83 private void valueTextBox_KeyDown(object sender, KeyEventArgs e) { 84 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) 84 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) { 85 85 label.Focus(); // set focus on label to validate data 86 if (e.KeyCode == Keys.Escape) { 86 e.SuppressKeyPress = true; 87 } else if (e.KeyCode == Keys.Escape) { 87 88 valueComboBox.Text = Content.Value; 88 89 label.Focus(); // set focus on label to validate data 90 e.SuppressKeyPress = true; 89 91 } 90 92 } -
trunk/HeuristicLab.Clients.OKB.Views/3.3/Query/Views/StringComparisonFilterView.cs
r17180 r18166 82 82 83 83 private void valueTextBox_KeyDown(object sender, KeyEventArgs e) { 84 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) 84 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) { 85 85 label.Focus(); // set focus on label to validate data 86 if (e.KeyCode == Keys.Escape) { 86 e.SuppressKeyPress = true; 87 } else if (e.KeyCode == Keys.Escape) { 87 88 valueTextBox.Text = Content.Value; 88 89 label.Focus(); // set focus on label to validate data 90 e.SuppressKeyPress = true; 89 91 } 90 92 } -
trunk/HeuristicLab.Core.Views/3.3/NamedItemView.cs
r17180 r18166 119 119 } 120 120 protected virtual void nameTextBox_KeyDown(object sender, KeyEventArgs e) { 121 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) 121 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) { 122 122 nameLabel.Focus(); // set focus on label to validate data 123 if (e.KeyCode == Keys.Escape) { 123 e.SuppressKeyPress = true; 124 } else if (e.KeyCode == Keys.Escape) { 124 125 nameTextBox.Text = Content.Name; 125 126 nameLabel.Focus(); // set focus on label to validate data 127 e.SuppressKeyPress = true; 126 128 } 127 129 } -
trunk/HeuristicLab.Data.Views/3.3/StringConvertibleArrayView.cs
r17180 r18166 156 156 } 157 157 private void lengthTextBox_KeyDown(object sender, KeyEventArgs e) { 158 if (e.KeyCode == Keys.Enter || e.KeyCode == Keys.Return) 158 if (e.KeyCode == Keys.Enter || e.KeyCode == Keys.Return) { 159 159 lengthLabel.Focus(); // set focus on label to validate data 160 if (e.KeyCode == Keys.Escape) { 160 e.SuppressKeyPress = true; 161 } else if (e.KeyCode == Keys.Escape) { 161 162 lengthTextBox.Text = Content.Length.ToString(); 162 163 lengthLabel.Focus(); // set focus on label to validate data 164 e.SuppressKeyPress = true; 163 165 } 164 166 } … … 249 251 clipboardText = clipboardText.Remove(clipboardText.Length - Environment.NewLine.Length); //remove last newline constant 250 252 251 var lines = clipboardText.Split(new 253 var lines = clipboardText.Split(new[] { Environment.NewLine }, StringSplitOptions.None); 252 254 var tabSep = new[] { '\t' }; 253 255 if (lines.Length > 2) { -
trunk/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs
r17921 r18166 227 227 } 228 228 private void rowsTextBox_KeyDown(object sender, KeyEventArgs e) { 229 if (e.KeyCode == Keys.Enter || e.KeyCode == Keys.Return) 229 if (e.KeyCode == Keys.Enter || e.KeyCode == Keys.Return) { 230 230 rowsLabel.Focus(); // set focus on label to validate data 231 if (e.KeyCode == Keys.Escape) { 231 e.SuppressKeyPress = true; 232 } else if (e.KeyCode == Keys.Escape) { 232 233 rowsTextBox.Text = Content.Rows.ToString(); 233 234 rowsLabel.Focus(); // set focus on label to validate data 235 e.SuppressKeyPress = true; 234 236 } 235 237 } … … 249 251 } 250 252 private void columnsTextBox_KeyDown(object sender, KeyEventArgs e) { 251 if (e.KeyCode == Keys.Enter || e.KeyCode == Keys.Return) 253 if (e.KeyCode == Keys.Enter || e.KeyCode == Keys.Return) { 252 254 columnsLabel.Focus(); // set focus on label to validate data 253 if (e.KeyCode == Keys.Escape) { 255 e.SuppressKeyPress = true; 256 } else if (e.KeyCode == Keys.Escape) { 254 257 columnsTextBox.Text = Content.Columns.ToString(); 255 258 columnsLabel.Focus(); // set focus on label to validate data 259 e.SuppressKeyPress = true; 256 260 } 257 261 } -
trunk/HeuristicLab.Data.Views/3.3/TextValueView.cs
r17180 r18166 86 86 87 87 protected virtual void valueTextBox_KeyDown(object sender, KeyEventArgs e) { 88 if (e.Shift && (e.KeyCode == Keys.Enter || e.KeyCode == Keys.Return)) 88 if (e.Shift && (e.KeyCode == Keys.Enter || e.KeyCode == Keys.Return)) { 89 89 valueLabel.Select(); // select label to validate data 90 91 if (e.KeyCode == Keys.Escape) {90 e.SuppressKeyPress = true; 91 } else if (e.KeyCode == Keys.Escape) { 92 92 valueTextBox.Text = Content.GetValue(); 93 93 valueLabel.Select(); // select label to validate data 94 e.SuppressKeyPress = true; 94 95 } 95 96 } -
trunk/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolView.cs
r17180 r18166 70 70 #region control event handlers 71 71 private void initialFrequencyTextBox_KeyDown(object sender, KeyEventArgs e) { 72 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) 72 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) { 73 73 initialFrequencyLabel.Select(); // select label to validate data 74 75 if (e.KeyCode == Keys.Escape) {74 e.SuppressKeyPress = true; 75 } else if (e.KeyCode == Keys.Escape) { 76 76 initialFrequencyTextBox.Text = Content.InitialFrequency.ToString(); 77 77 initialFrequencyLabel.Select(); // select label to validate data 78 e.SuppressKeyPress = true; 78 79 } 79 80 } -
trunk/HeuristicLab.Parameters.Views/3.3/ScopeTreeLookupParameterView.cs
r17180 r18166 106 106 } 107 107 protected virtual void depthTextBox_KeyDown(object sender, KeyEventArgs e) { 108 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) 108 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) { 109 109 depthLabel.Focus(); // set focus on label to validate data 110 if (e.KeyCode == Keys.Escape) { 110 e.SuppressKeyPress = true; 111 } else if (e.KeyCode == Keys.Escape) { 111 112 depthTextBox.Text = Content.Depth.ToString(); 112 113 depthLabel.Focus(); // set focus on label to validate data 114 e.SuppressKeyPress = true; 113 115 } 114 116 } -
trunk/HeuristicLab.Problems.DataAnalysis.Views/3.4/FeatureCorrelation/TimeframeFeatureCorrelationView.cs
r17180 r18166 70 70 if (e.KeyCode == Keys.Enter || e.KeyCode == Keys.Return) { 71 71 timeFrameLabel.Select(); // select label to validate data 72 } 73 74 if (e.KeyCode == Keys.Escape) { 72 e.SuppressKeyPress = true; 73 } else if (e.KeyCode == Keys.Escape) { 75 74 timeframeTextbox.Text = lastFramesValue; 76 75 timeFrameLabel.Select(); // select label to validate data 76 e.SuppressKeyPress = true; 77 77 } 78 78 } -
trunk/HeuristicLab.Problems.DataAnalysis.Views/3.4/TimeSeriesPrognosis/TimeSeriesPrognosisResultsView.cs
r17180 r18166 107 107 108 108 private void TrainingHorizonTextBox_KeyDown(object sender, KeyEventArgs e) { 109 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) 109 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) { 110 110 TrainingHorizonLabel.Select(); // select label to validate data 111 112 if (e.KeyCode == Keys.Escape) {111 e.SuppressKeyPress = true; 112 } else if (e.KeyCode == Keys.Escape) { 113 113 TrainingHorizonTextBox.Text = Content.TrainingHorizon.ToString(); 114 114 TrainingHorizonLabel.Select(); // select label to validate data 115 e.SuppressKeyPress = true; 115 116 } 116 117 } … … 132 133 133 134 private void TestHorizonTextBox_KeyDown(object sender, KeyEventArgs e) { 134 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) 135 if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return)) { 135 136 TestHorizonLabel.Select(); // select label to validate data 136 137 if (e.KeyCode == Keys.Escape) {137 e.SuppressKeyPress = true; 138 } else if (e.KeyCode == Keys.Escape) { 138 139 TestHorizonTextBox.Text = Content.TestHorizon.ToString(); 139 140 TestHorizonLabel.Select(); // select label to validate data 141 e.SuppressKeyPress = true; 140 142 } 141 143 }
Note: See TracChangeset
for help on using the changeset viewer.