Ejemplo n.º 1
0
        //povikaj publika
        private void button13_Click(object sender, EventArgs e)
        {
            audFriend.settings.setMode("loop", false);
            audFriend.URL = "aud.mp3";
            foreach (var series in chart1.Series)
            {
                series.Points.Clear();
            }
            richTextBox1.Hide();
            currentQuestion.audience();
            if (!currentQuestion.answerA.hideFor5050)
            {
                chart1.Series["Audience"].Points.AddXY("A", Question.votes[0]);
            }
            if (!currentQuestion.answerB.hideFor5050)
            {
                chart1.Series["Audience"].Points.AddXY("B", Question.votes[1]);
            }
            if (!currentQuestion.answerC.hideFor5050)
            {
                chart1.Series["Audience"].Points.AddXY("C", Question.votes[2]);
            }
            if (!currentQuestion.answerD.hideFor5050)
            {
                chart1.Series["Audience"].Points.AddXY("D", Question.votes[3]);
            }
            chart1.Show();

            button13.Hide();
        }
Ejemplo n.º 2
0
        //povikaj publika
        private void button13_Click(object sender, EventArgs e)
        {
            foreach (var series in chart1.Series)
            {
                series.Points.Clear();
            }
            q.audience();
            // int[] yValues = {25,50,75,100 }; // Here y values is related to display three month values
            // string[] xValues = { "A", "B", "C","D" };
            // chart1.Series["Audience"].Points.DataBindY(yValues);

            this.chart1.Series["Audience"].Points.AddXY("A", Question.votes[0]);
            this.chart1.Series["Audience"].Points.AddXY("B", Question.votes[1]);
            this.chart1.Series["Audience"].Points.AddXY("C", Question.votes[2]);
            this.chart1.Series["Audience"].Points.AddXY("D", Question.votes[3]);
            chart1.Show();
            button13.Hide();
        }