void InitClosedDaysControl() { if (_currentControl == null || !(_currentControl is UCClosedDays)) { ReleaseControl(); ClearListEstimationYears(); ucClosedDaysControl = new UCClosedDays(); ucClosedDaysControl.Parent = pcClient; ucClosedDaysControl.Dock = DockStyle.Fill; ucClosedDaysControl.Show(); ucClosedDaysControl.Entity = Entity; _currentControl = ucClosedDaysControl; CreateBarControl(); } }