コード例 #1
0
        void InitAbsenceControl()
        {
            if (_currentControl == null || !(_currentControl is AbsenceListControl))
            {
                ReleaseControl();
                ucAbsenceList        = new AbsenceListControl();
                ucAbsenceList.Parent = pcClient;
                ucAbsenceList.Dock   = DockStyle.Fill;
                ucAbsenceList.Show();
                ucAbsenceList.Entity = Entity;
                ucAbsenceList.InitControl();

                _currentControl = ucAbsenceList;
                CreateBarControl();
            }
        }
コード例 #2
0
ファイル: UCCountryEdit.cs プロジェクト: 5509850/baumax
        void InitAbsenceControl()
        {
            if (_currentControl == null || !(_currentControl is AbsenceListControl))
            {
                ReleaseControl();
                ucAbsenceList = new AbsenceListControl();
                ucAbsenceList.Parent = pcClient;
                ucAbsenceList.Dock = DockStyle.Fill;
                ucAbsenceList.Show();
                ucAbsenceList.Entity = Entity;
                ucAbsenceList.InitControl();

                _currentControl = ucAbsenceList;
                CreateBarControl();
            }

        }