Inheritance: System.EventArgs
示例#1
0
        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;
            }
        }
示例#2
0
 private void SendFieldFocusEvent(FocusEventType fet)
 {
     if (FieldFocusEvent != null)
     {
         FieldFocusEventArgs args = new FieldFocusEventArgs();
         //args.FieldIndex = FieldIndex;
         args.FocusEventType = fet;
         FieldFocusEvent(this, args);
     }
 }
示例#3
0
        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;
             }
        }
示例#4
0
 private void SendFieldFocusEvent( FocusEventType fet )
 {
     if ( FieldFocusEvent != null )
      {
     FieldFocusEventArgs args = new FieldFocusEventArgs();
     //args.FieldIndex = FieldIndex;
     args.FocusEventType = fet;
     FieldFocusEvent( this, args );
      }
 }