private void PredictionLeagueTableForm_Load(System.Object sender, System.EventArgs e) { FixtureBuilder fb = new FixtureBuilder(); userResultList = fb.getScores(); this.PredictionsLeagueFlowLayoutPanel.Enabled = true; this.PredictionsLeagueFlowLayoutPanel.Visible = true; this.NavigationGroupBox.Visible = true; this.MainMenuButton.Visible = true; foreach (Users user in userResultList) { PredictionLeagueUserControl review = new PredictionLeagueUserControl(user.user, user.correct); this.PredictionsLeagueFlowLayoutPanel.Controls.Add(review); } }
private void PredictionLeagueTableForm_Load(System.Object sender, System.EventArgs e) { FixtureBuilder fb = new FixtureBuilder(); userResultList = fb.getScores(); this.PredictionsLeagueFlowLayoutPanel.Enabled = true; this.PredictionsLeagueFlowLayoutPanel.Visible = true; this.NavigationGroupBox.Visible = true; this.MainMenuButton.Visible = true; foreach (Users user in userResultList) { PredictionLeagueUserControl review = new PredictionLeagueUserControl(user.user, user.correct); this.PredictionsLeagueFlowLayoutPanel.Controls.Add(review); } }
private void predictionLeagueButton_Click(System.Object sender, System.EventArgs e) { this.MainFlowLayoutPanel.Controls.Clear(); FixtureBuilder fb = new FixtureBuilder(); userResultList = fb.getScores(); Dictionary <int, string> userDictionary = new Dictionary <int, string>(); userDictionary = fb.getIdsandUsers(); this.MainFlowLayoutPanel.Enabled = true; this.MainFlowLayoutPanel.Visible = true; this.submitGroupBox.Visible = false; string name = ""; foreach (Users user in userResultList) { userDictionary.TryGetValue(user.UserID, out name); PredictionLeagueUserControl review = new PredictionLeagueUserControl(name, user.correct); this.MainFlowLayoutPanel.Controls.Add(review); } }
private void predictionLeagueButton_Click(System.Object sender, System.EventArgs e) { this.MainFlowLayoutPanel.Controls.Clear(); FixtureBuilder fb = new FixtureBuilder(); userResultList = fb.getScores(); Dictionary<int, string> userDictionary = new Dictionary<int, string>(); userDictionary = fb.getIdsandUsers(); this.MainFlowLayoutPanel.Enabled = true; this.MainFlowLayoutPanel.Visible = true; this.submitGroupBox.Visible = false; string name = ""; foreach (Users user in userResultList) { userDictionary.TryGetValue(user.UserID, out name); PredictionLeagueUserControl review = new PredictionLeagueUserControl(name, user.correct); this.MainFlowLayoutPanel.Controls.Add(review); } }