示例#1
0
        private void customCharacterGroupBox_arrowPressedEvent(CyArrowArgs e)
        {
            switch (e.ArrowDirection)
            {
            case CyArrowArgs.CyDirection.LEFT:
                HighlightPrevious();
                break;

            case CyArrowArgs.CyDirection.RIGHT:
                HighlightNext();
                break;

            case CyArrowArgs.CyDirection.UP:
                HighlightAbove();
                break;

            case CyArrowArgs.CyDirection.DOWN:
                HighlightBelow();
                break;

            default:
                break;
            }
        }
 private void RaiseArrowEvent(CyArrowArgs.CyDirection keyDirection)
 {
     if (arrowPressedEvent != null)
         arrowPressedEvent(new CyArrowArgs(keyDirection));
 }
 private void customCharacterGroupBox_arrowPressedEvent(CyArrowArgs e)
 {
     switch (e.ArrowDirection)
     {
         case CyArrowArgs.CyDirection.LEFT:
             HighlightPrevious();
             break;
         case CyArrowArgs.CyDirection.RIGHT:
             HighlightNext();
             break;
         case CyArrowArgs.CyDirection.UP:
             HighlightAbove();
             break;
         case CyArrowArgs.CyDirection.DOWN:
             HighlightBelow();
             break;
         default:
             break;
     }
 }