Пример #1
0
        private void timerPulse_Tick(object sender, EventArgs e)
        {
            if (this.m_currentIndex >= this.m_fourierResults.Length)
            {
                SetKeyState.SetNumState(false);
                SetKeyState.SetScrollState(false);
                SetKeyState.SetCapsState(false);
                this.timerPulse.Enabled = false;
            }
            else
            {
                SetKeyState.SetNumState((this.m_fourierResults[this.m_currentIndex][0] > m_blinkThresholdFactor));
                SetKeyState.SetCapsState((this.m_fourierResults[this.m_currentIndex][1] > m_blinkThresholdFactor));
                SetKeyState.SetScrollState((this.m_fourierResults[this.m_currentIndex][2] > m_blinkThresholdFactor));

                this.setMeters(this.m_fourierResults[this.m_currentIndex], this.m_normalizeFactor);
                this.m_currentIndex++;

                this.lblStatus.Text = this.m_currentIndex.ToString();
            }
        }
Пример #2
0
 private void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     SetKeyState.SetNumState(this.savedNum);
     SetKeyState.SetScrollState(this.savedScroll);
     SetKeyState.SetCapsState(this.savedCaps);
 }