Exemple #1
0
 private void AlertDisplay_Load(object sender, EventArgs e)
 {
     ptbIcon.BackgroundImage = icon;
     label1.Text             = message;
     Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - this.Width, Screen.PrimaryScreen.WorkingArea.Height - this.Height * i);
     current  = State.start;
     FadeTimer.Start();
 }
Exemple #2
0
        private void UserAnswerWrong()
        {
            pointFade = new FadeTimer(255, 0, 0);
            pointFade.PositiveOrNegativePoints = false;
            FadeTimer.Start();

            if (cbFocus.Checked)
            {
                sessionFocus.RecordUserResults(userKeyListObject.CurrentRandomKey, 0);
            }

            sessionStatistics.Total++;
            sessionStatistics.TotalPoints -= 3;
            GetScoreAndDisplayStatistics();
        }
Exemple #3
0
        private void trackTotal()
        {     // user answer incorrect
            if (cbFocus.Checked)
            {
                sessionFocus.recordUserResults(userKeyListObject.CurrentRandomKey, 0);
            }

            sessionStatistics.Total++;
            sessionStatistics.TotalPoints -= 3;

            pointFade = new FadeTimer(255, 0, 0);
            pointFade.PositiveOrNegativePoints = false;
            FadeTimer.Start();

            getScoreAndDisplayStatistics();
        }
Exemple #4
0
        private void UserAnswerRight()
        {
            pointFade = new FadeTimer(0, 255, 0); // for green and red score display
            pointFade.PositiveOrNegativePoints = true;
            FadeTimer.Start();

            if (cbFocus.Checked) // if in focus mode, collect user performance data
            {
                sessionFocus.RecordUserResults(userKeyListObject.CurrentRandomKey, 1);
            }

            sessionStatistics.Correct++;
            sessionStatistics.Total++;
            sessionStatistics.TotalPoints += 5;
            NoteClear();
            LedgerLineClear();
            GetRandomKeyAndDisplay();
            GetScoreAndDisplayStatistics();
        }
Exemple #5
0
        private void playAgain()
        {     // user answered correct - collect user performance data
              // track score + display to user

            if (cbFocus.Checked) // if in focus mode, collect user performance data
            {
                sessionFocus.recordUserResults(userKeyListObject.CurrentRandomKey, 1);
            }

            sessionStatistics.Correct++;
            sessionStatistics.Total++;
            sessionStatistics.TotalPoints += 5;

            pointFade = new FadeTimer(0, 255, 0);     // for green and red score display
            pointFade.PositiveOrNegativePoints = true;
            FadeTimer.Start();

            getScoreAndDisplayStatistics();
            getRandomKeyAndDisplay();
        }
 private void StartFadeOut()
 {
     FadeTimer.Tick += this.FadeOut;
     FadeTimer.Start();
 }