public FormLeague(HTEntities.LeagueDetails.LeagueDetails leagueDetails, HTEntities.LeagueFixtures.LeagueFixtures leagueFixtures, uint teamId)
        {
            this.teamId = teamId;
            this.leagueDetails = leagueDetails;
            this.leagueFixtures = leagueFixtures;
            InitializeComponent();
            this.dataGridViewPositions.Columns[columnPositionName].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewPositions.Columns[columnChangeName].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewPositions.Columns[columnTeamName].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleLeft;
            this.dataGridViewPositions.Columns[columnMatchesName].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewPositions.Columns[columnWonName].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewPositions.Columns[columnDrawName].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewPositions.Columns[columnLostName].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewPositions.Columns[columnGoalsForName].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewPositions.Columns[columnGoalsAgainstName].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewPositions.Columns[columnGoalDifferenceName].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewPositions.Columns[columnPointsName].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewFixtures.Columns[columnRoundName].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewFixtures.Columns[columnDateName].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewFixtures.Columns[columnHomeResultName].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewFixtures.Columns[columnHomeTeamName].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight;
            this.dataGridViewFixtures.Columns[columnScoreName].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewFixtures.Columns[columnAwayTeamName].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleLeft;
            this.dataGridViewFixtures.Columns[columnAwayResultName].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;

            LoadControls();
        }
示例#2
0
        public FormLeague(HTEntities.LeagueDetails.LeagueDetails leagueDetails, HTEntities.LeagueFixtures.LeagueFixtures leagueFixtures, uint teamId)
        {
            this.teamId         = teamId;
            this.leagueDetails  = leagueDetails;
            this.leagueFixtures = leagueFixtures;
            InitializeComponent();
            this.dataGridViewPositions.Columns[columnPositionName].HeaderCell.Style.Alignment       = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewPositions.Columns[columnChangeName].HeaderCell.Style.Alignment         = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewPositions.Columns[columnTeamName].HeaderCell.Style.Alignment           = DataGridViewContentAlignment.MiddleLeft;
            this.dataGridViewPositions.Columns[columnMatchesName].HeaderCell.Style.Alignment        = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewPositions.Columns[columnWonName].HeaderCell.Style.Alignment            = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewPositions.Columns[columnDrawName].HeaderCell.Style.Alignment           = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewPositions.Columns[columnLostName].HeaderCell.Style.Alignment           = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewPositions.Columns[columnGoalsForName].HeaderCell.Style.Alignment       = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewPositions.Columns[columnGoalsAgainstName].HeaderCell.Style.Alignment   = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewPositions.Columns[columnGoalDifferenceName].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewPositions.Columns[columnPointsName].HeaderCell.Style.Alignment         = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewFixtures.Columns[columnRoundName].HeaderCell.Style.Alignment           = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewFixtures.Columns[columnDateName].HeaderCell.Style.Alignment            = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewFixtures.Columns[columnHomeResultName].HeaderCell.Style.Alignment      = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewFixtures.Columns[columnHomeTeamName].HeaderCell.Style.Alignment        = DataGridViewContentAlignment.MiddleRight;
            this.dataGridViewFixtures.Columns[columnScoreName].HeaderCell.Style.Alignment           = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewFixtures.Columns[columnAwayTeamName].HeaderCell.Style.Alignment        = DataGridViewContentAlignment.MiddleLeft;
            this.dataGridViewFixtures.Columns[columnAwayResultName].HeaderCell.Style.Alignment      = DataGridViewContentAlignment.MiddleCenter;

            LoadControls();
        }