Esempio n. 1
0
        public static decimal ShowBox(decimal oldNumber, decimal minNumber, decimal maxNumber)
        {
            KeyBoard keyBoard = new KeyBoard();

            keyBoard.OldNumber = oldNumber;
            keyBoard.MinNumber = minNumber;
            keyBoard.MaxNumber = maxNumber;
            keyBoard.ShowDialog();

            return(keyBoard.Result);
        }
Esempio n. 2
0
 private void upDownLength_GotFocus(object sender, EventArgs e)
 {
     this.Focus();
     upDownLength.Value = KeyBoard.ShowBox(upDownLength.Value, upDownLength.Minimum, upDownLength.Maximum);
 }
Esempio n. 3
0
 private void upDownAccleration_GotFocus(object sender, EventArgs e)
 {
     this.Focus();
     upDownAcceleration.Value = KeyBoard.ShowBox(upDownAcceleration.Value, upDownAcceleration.Minimum, upDownAcceleration.Maximum);
 }