Example #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            button4.BackgroundImage = Image.FromFile("SelectedVsNot - Copy.jpg");
            FinalAnswer finalANswer = new FinalAnswer();

            if (finalANswer.ShowDialog() == DialogResult.OK)
            {
                string text = button4.Text;
                checkAnswer(text, 4);
            }
            else
            {
                button4.BackgroundImage = Image.FromFile("SelectedVsNot.jpg");
            }
        }
Example #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            button4.BackgroundImage = Image.FromFile("C:\\Users\\Dragan\\Desktop\\SelectedVsNot - Copy.jpg");
            FinalAnswer finalANswer = new FinalAnswer();

            if (finalANswer.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                string text = button4.Text;
                checkAnswer(text, 4);
            }
            else
            {
                button4.BackgroundImage = Image.FromFile("C:\\Users\\Dragan\\Desktop\\SelectedVsNot.jpg");
            }
        }
Example #3
0
        private void button2_Click(object sender, EventArgs e)
        {
            button2.BackgroundImage = Image.FromFile("SelectedVsNot - Copy.jpg");

            FinalAnswer finalANswer = new FinalAnswer();

            if (finalANswer.ShowDialog() == DialogResult.OK)
            {
                string text = button2.Text;
                playAnswerSong(AnswerSongMode.Select, currentQuestion.level);
                checkAnswer(text, 2);
            }
            else
            {
                button2.BackgroundImage = Image.FromFile("SelectedVsNot.jpg");
            }
        }