コード例 #1
0
 /// <summary>
 /// Key is up on this item
 /// </summary>
 /// <returns>True if the event was handled, false otherwise.</returns>
 public virtual bool OnKeyUp(VCItem sender, ItemKeyEventArgs e)
 {
     if (next != null)
     {
         return(next.OnKeyUp(sender, e));
     }
     return(false);
 }
コード例 #2
0
ファイル: VCItem.cs プロジェクト: michaeloed/BinkyRailways
        /// <summary>
        /// Key up event
        /// </summary>
        internal bool OnKeyUp(Handlers.ItemKeyEventArgs e)
        {
            bool result = false;

            if (keyboardHandler != null)
            {
                result |= keyboardHandler.OnKeyUp(this, e);
            }
            if (KeyUp != null)
            {
                KeyUp(this, e);
            }
            return(result);
        }