示例#1
0
        private void OnKeyUp(MyKeyboardEventArgs e)
        {
            KeyboardHadler <MyKeyboardEventArgs> temp = KeyUp;

            if (temp != null)
            {
                temp.Invoke(e);
            }
        }
示例#2
0
 public void AddKeyUpEvent(KeyboardHadler <MyKeyboardEventArgs> func)
 {
     KeyUp += func;
 }
示例#3
0
 public void AddKeyDownEvent(KeyboardHadler <MyKeyboardEventArgs> func)
 {
     KeyDown += func;
 }