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);

            }
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
        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);
            }
        }
Esempio n. 4
0
        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);

            }
        }