示例#1
0
        private void OnStartTxtKeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                StationBoardBtn.PerformClick();
            }

            StartLabelUpdate(StartLstBox, e.KeyCode);
        }
示例#2
0
        private void OnStartLstBoxKeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Down || e.KeyCode == Keys.Up)
            {
                e.Handled = true;
            }


            if (e.KeyCode == Keys.Enter)
            {
                StationBoardBtn.PerformClick();
            }

            StartLabelUpdate(StartLstBox, e.KeyCode);
        }