Habanero.Faces.Win.TextBoxMapperStrategyWin.AddKeyPressEventHandler C# (CSharp) Метод

AddKeyPressEventHandler() публичный Метод

Adds key press event handlers that carry out actions like limiting the input of certain characters, depending on the type of the property
public AddKeyPressEventHandler ( TextBoxMapper mapper, IBOProp boProp ) : void
mapper Habanero.Faces.Base.TextBoxMapper The TextBox mapper
boProp IBOProp The property being mapped
Результат void
        public void AddKeyPressEventHandler(TextBoxMapper mapper, IBOProp boProp)
        {
            BoProp = boProp;
            var tb = mapper.GetControl() as TextBox;

            if (tb != null)
            {
                tb.KeyPress += KeyPressEventHandler;
                TextBoxControl = tb;
            }
        }