예제 #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();
     }
 }
예제 #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();
     }
 }