Esempio n. 1
0
 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();
     }
 }
Esempio n. 2
0
 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();
     }
 }