private void OnFieldFocus(object sender, FieldFocusEventArgs e) { switch (e.FocusEventType) { case FocusEventType.GotFocus: if (!_focused) { _focused = true; base.OnGotFocus(EventArgs.Empty); } break; case FocusEventType.LostFocus: if (!Focused) { _focused = false; base.OnLostFocus(EventArgs.Empty); } break; } }
private void SendFieldFocusEvent(FocusEventType fet) { if (FieldFocusEvent != null) { FieldFocusEventArgs args = new FieldFocusEventArgs(); //args.FieldIndex = FieldIndex; args.FocusEventType = fet; FieldFocusEvent(this, args); } }
private void OnFieldFocus( object sender, FieldFocusEventArgs e ) { switch ( e.FocusEventType ) { case FocusEventType.GotFocus: if ( !_focused ) { _focused = true; base.OnGotFocus( EventArgs.Empty ); } break; case FocusEventType.LostFocus: if ( !Focused ) { _focused = false; base.OnLostFocus( EventArgs.Empty ); } break; } }
private void SendFieldFocusEvent( FocusEventType fet ) { if ( FieldFocusEvent != null ) { FieldFocusEventArgs args = new FieldFocusEventArgs(); //args.FieldIndex = FieldIndex; args.FocusEventType = fet; FieldFocusEvent( this, args ); } }