Beispiel #1
0
 //set up the data and the chart
 public void BindData()
 {
     chart1.ChartAreas.Add(chartArea);
     chart1.Series.Add(series);
     chart1.Legends.Add(legend);
     chart1.Titles.Add("Cost " + choice1 + choice2);
     chart1.Titles[0].Font      = new Font("Arial", 15.5f, FontStyle.Regular);
     chart1.Titles[0].ForeColor = Color.OrangeRed;
     chart1.Show();
     chart1.BringToFront();
     Restart.Show();
     Restart.Enabled = true;
 }
Beispiel #2
0
        private void startButton_Click(object sender, EventArgs e)
        {
            //Start the quiz.
            StartQuiz();
            startButton.Enabled = false;
            Restart.Show();
            label9.Hide();
            label12.Show();

            sum.Enabled        = true;
            difference.Enabled = true;
            product.Enabled    = true;
            quotient.Enabled   = true;

            lockReset();
        }