Пример #1
0
        public bool AcceptChar(TextField textField, char c)
        {
            if (c == 't' || c == 'T')
            {
                textField.SetTextForced("true");
            }

            if (c == 'f' || c == 'F')
            {
                textField.SetTextForced("false");
            }

            return(false);
        }
Пример #2
0
        public void SetNumber(float value)
        {
            field.SetTextForced(value.ToString());
            number = value;

            OnNumberChanged(this, value);
        }