Beispiel #1
0
        private void InputValidation_Text(object sender, TextCompositionEventArgs e)
        {
            //Allow the user to input a minus-sign (but only one)
            if (TextAngle.Text != string.Empty && TextAngle.Text.First() != '-' && e.Text != string.Empty && e.Text.First() == '-' && TextAngle.CaretIndex == 0)
            {
                return;
            }

            SharedEventHandlingLogic.InputValidation_ContrainToInt(sender, e);
        }
 private void InputValidationOnPaste(object sender, DataObjectPastingEventArgs e)
 {
     SharedEventHandlingLogic.InputValidationOnPaste_ContrainToInt(sender, e);
 }
 private void InputValidation(object sender, TextCompositionEventArgs e)
 {
     SharedEventHandlingLogic.InputValidation_ContrainToInt(sender, e);
 }