예제 #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();
 }
예제 #2
0
파일: Form1.cs 프로젝트: Esylus/Noterize
        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();
        }
예제 #3
0
파일: Form1.cs 프로젝트: Esylus/Dvorak
        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();
        }
예제 #4
0
파일: Form1.cs 프로젝트: Esylus/Noterize
        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();
        }
예제 #5
0
파일: Form1.cs 프로젝트: Esylus/Dvorak
        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();
 }