public betForm() { InitializeComponent(); this.storage = new bettorStorage(); this.selectedmatch = new match(); inputs(); }
private void matchComboBox_SelectedIndexChanged(object sender, EventArgs e) { match selectedmatch = (match)matchComboBox.SelectedItem; teamComboBox.Items.Clear(); teamComboBox.Items.Add(selectedmatch.teamA); teamComboBox.Items.Add(selectedmatch.teamB); }