void InitLunchBreakControl() { if (_currentControl == null || !(_currentControl is UCLunchBrakes)) { ReleaseControl(); ClearListEstimationYears(); // may be not need ucLucnchBrk = new UCLunchBrakes(); ucLucnchBrk.Parent = pcClient; ucLucnchBrk.Dock = DockStyle.Fill; ucLucnchBrk.Show(); ucLucnchBrk.Entity = Entity; _currentControl = ucLucnchBrk; CreateBarControl(); } }
void InitLunchBreakControl() { if (_currentControl == null || !(_currentControl is UCLunchBrakes)) { ReleaseControl(); ClearListEstimationYears(); // may be not need ucLucnchBrk = new UCLunchBrakes(); ucLucnchBrk.Parent = pcClient; ucLucnchBrk.Dock = DockStyle.Fill; ucLucnchBrk.Show(); ucLucnchBrk.Entity = Entity; _currentControl = ucLucnchBrk; CreateBarControl(); } }