Exemplo n.º 1
0
        private void btnShowInfo_Click(object sender, EventArgs e)
        {
            String country = tbCountry.Text;

            mySongfestival.CalculateInfo(country, out int score, out int avgscore);
            tbScore.Text = score.ToString();
            lbInfo.Items.Add(country + " " + score + " " + avgscore);
        }
Exemplo n.º 2
0
        private void btnShowInfo_Click(object sender, EventArgs e)
        {
            int    score;
            double averageScore;

            lbInfo.Items.Clear();
            mySongfestival.CalculateInfo(tbCountry.Text, out score, out averageScore);
            lbInfo.Items.Add("The total score of " + tbCountry.Text + " is " + score + ".");
            lbInfo.Items.Add("The average score of all contestants is " + averageScore);
        }
Exemplo n.º 3
0
        private void btnShowInfo_Click(object sender, EventArgs e)
        {
            lbInfo.Items.Clear();
            String country = tbCountry.Text;
            int    totalScore;
            double AvgAllScore;

            mySongfestival.CalculateInfo(country, out totalScore, out AvgAllScore);

            lbInfo.Items.Add($"Total score of {country} is: {totalScore}");
            lbInfo.Items.Add($"Average score of all the participant is: {AvgAllScore}");
        }