Esempio n. 1
0
        void InitAvgWorkingDaysInWeekControl()
        {
            if (_currentControl == null || !(_currentControl is UCAvgWorkingDaysInWeek))
            {
                ReleaseControl();

                ucAvgWDIWeekControl        = new UCAvgWorkingDaysInWeek();
                ucAvgWDIWeekControl.Parent = pcClient;
                ucAvgWDIWeekControl.Dock   = DockStyle.Fill;
                ucAvgWDIWeekControl.Show();
                ucAvgWDIWeekControl.Entity = Entity;

                _currentControl = ucAvgWDIWeekControl;
                CreateBarControl();
            }
        }
Esempio n. 2
0
        void InitAvgWorkingDaysInWeekControl()
        {
            if (_currentControl == null || !(_currentControl is UCAvgWorkingDaysInWeek))
            {
                ReleaseControl();

                ucAvgWDIWeekControl = new UCAvgWorkingDaysInWeek();
                ucAvgWDIWeekControl.Parent = pcClient;
                ucAvgWDIWeekControl.Dock = DockStyle.Fill;
                ucAvgWDIWeekControl.Show();
                ucAvgWDIWeekControl.Entity = Entity;

                _currentControl = ucAvgWDIWeekControl;
                CreateBarControl();
            }

        }