void InitYearAppearanceControl() { if (_currentControl == null || !(_currentControl is YearlyAppearanceListControl)) { ClearListEstimationYears(); ReleaseControl(); ucYearlyAppearance = new YearlyAppearanceListControl(); ucYearlyAppearance.Parent = pcClient; ucYearlyAppearance.Dock = DockStyle.Fill; ucYearlyAppearance.Show(); ucYearlyAppearance.EntityCountry = EntityCountry; _currentControl = ucYearlyAppearance; CreateBarControl(); } }
void InitYearAppearanceControl() { if (_currentControl == null || !(_currentControl is YearlyAppearanceListControl)) { ClearListEstimationYears(); ReleaseControl(); ucYearlyAppearance = new YearlyAppearanceListControl(); ucYearlyAppearance.Parent = pcClient; ucYearlyAppearance.Dock = DockStyle.Fill; ucYearlyAppearance.Show(); ucYearlyAppearance.EntityCountry = EntityCountry; _currentControl = ucYearlyAppearance; CreateBarControl(); } }