private void Init() { ChangeFormDimensions(); CountryCMB.SelectedIndex = 0; IsInitialized = true; DoubleBuffered = true; CurrentActiveYear = Config.LastYear; GraphicsPB.Left = 0; GraphicsPB.Height = 960; GraphsPanel.Controls.Add(GraphicsPB); FetchedClubs = FetchedClubs ?? new List <ClubHistory>(); SelectedClubs = SelectedClubs ?? new Dictionary <int, ClubHistory>(); TableMarkup.Initialize(GraphicsPB); ControlsManager.Initialize(YearsLbl, YearsLbl2); CriteriaCMB.SelectedIndex = 0; for (var i = Config.FirstYear; i <= Config.LastYear; i++) { SeasonYearCMB.Items.Add(" Season " + (i - 1) + " / " + i); } }
private void MainForm_Paint(object sender, PaintEventArgs e) { if (IsInitialized) { TableMarkup.DrawMarkup(IsSingleSeasonView, ActiveCountryName, CurrentActiveYear, SelectedClubs); TableMarkup.DrawTeamPositions(IsSingleSeasonView, ActiveCountryName, CurrentActiveYear, SelectedClubs); } }