Example #1
0
        /// <summary>
        /// 响应按键处理到信号处理控件
        /// </summary>
        /// <param name="e"></param>
        private void ResponseSign(KeyEventArgs e)
        {
            int nowkey = (int)e.Key;

            if (e.Key == Key.S)
            {
                nowkey = 73;
            }
            if (e.Key == Key.L)
            {
                nowkey = 74;
            }
            //textBox1.Text = nowkey.ToString();
            cpSignPanel.NotifyKeyDown(CommHelper.KeyCodeToDrumType(nowkey));
        }