Пример #1
0
        private void ReviewForm_Load(System.Object sender, System.EventArgs e)
        {
            FixtureBuilder fb = new FixtureBuilder();
            userList = fb.getUsers();
            submittedList = fb.usersSubmitted();

            this.UserPredictionsFlowLayoutPanel.Enabled = true;
            this.UserPredictionsFlowLayoutPanel.Visible = true;
            this.NavigationGroupBox.Visible = true;
            this.MainMenuButton.Visible = true;

            foreach (string user in userList) {
                UserPredictionsUserControl review = new UserPredictionsUserControl(user);
                this.UserPredictionsFlowLayoutPanel.Controls.Add(review);

                if (submittedList.Contains(user)) {
                    review.submittedLabel.BackColor = Color.LightGreen;
                    review.submittedLabel.Text = "Submitted";
                }

            }
        }
Пример #2
0
        private void ReviewForm_Load(System.Object sender, System.EventArgs e)
        {
            FixtureBuilder fb = new FixtureBuilder();

            userList      = fb.getUsers();
            submittedList = fb.usersSubmitted();

            this.UserPredictionsFlowLayoutPanel.Enabled = true;
            this.UserPredictionsFlowLayoutPanel.Visible = true;
            this.NavigationGroupBox.Visible             = true;
            this.MainMenuButton.Visible = true;

            foreach (string user in userList)
            {
                UserPredictionsUserControl review = new UserPredictionsUserControl(user);
                this.UserPredictionsFlowLayoutPanel.Controls.Add(review);

                if (submittedList.Contains(user))
                {
                    review.submittedLabel.BackColor = Color.LightGreen;
                    review.submittedLabel.Text      = "Submitted";
                }
            }
        }