Ejemplo n.º 1
0
        private void AddPrize_Click(object sender, EventArgs e)
        {
            PrizeDialog prizeDialog = new PrizeDialog(TournamentAnalytics.PlacesPaid() + 1);

            if (prizeDialog.ShowDialog() == DialogResult.OK)
            {
                TournamentAnalytics.Prizes.Add(prizeDialog.Prize);
                prizesList.Items.Add(new PrizeListBoxItem(TournamentAnalytics.Prizes, TournamentAnalytics.Prizes.Count - 1));
            }
        }
Ejemplo n.º 2
0
 private void UpdateTournamentValues()
 {
     ExpectedValue.Text = string.Format("Expected tournament value: {0}", TournamentAnalytics.TournamentEV());
 }