Changeset 17444 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/NumericRangeControl.cs
- Timestamp:
- 02/18/20 16:28:53 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/NumericRangeControl.cs
r17411 r17444 33 33 textBoxFrom.ReadOnly = !checkBoxFrom.Checked; 34 34 } 35 36 private void textBoxFrom_Validating(object sender, CancelEventArgs e) { 37 if (string.IsNullOrWhiteSpace(textBoxFrom.Text)) { 38 errorProvider.SetError(textBoxFrom, "'From' must not be empty."); 39 e.Cancel = true; 40 } else { 41 errorProvider.SetError(textBoxFrom, null); 42 } 43 } 44 45 private void textBoxTo_Validating(object sender, CancelEventArgs e) { 46 if (string.IsNullOrWhiteSpace(textBoxTo.Text)) { 47 errorProvider.SetError(textBoxTo, "'To' must not be empty."); 48 e.Cancel = true; 49 } else { 50 errorProvider.SetError(textBoxTo, null); 51 } 52 } 35 53 } 36 54 }
Note: See TracChangeset
for help on using the changeset viewer.