Example #1
0
 /// <summary>
 /// Perform key event
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void FuncButton_Click(object sender, EventArgs e)
 {
     if (this.MappedKey == null)
     {
         return;
     }
     PerformKeyEvent(OPOSKeyEventArgs.FromFuncCode(this.MappedKey.CdFunc));
 }
Example #2
0
        void btn_Click(object sender, EventArgs e)
        {
            FuncButton fb = (FuncButton)sender;

            if (fb.MappedKey == null)
            {
                return;
            }

            var ev = OPOSKeyEventArgs.FromFuncCode(fb.MappedKey.CdFunc);

            if (ev != null && ev.Key.OPOSKey != OPOSMapKeys.INVALID)
            {
                btn_KeyEvent(ev);
            }
        }