Пример #1
0
        private void frmListEmployees_Load(object sender, EventArgs e)
        {
            departmentDO = new DepartmentDO();
            employeeDO   = new EmployeeDO();

            departmentTreeView.DepartmentDataSet = departmentDO.GetAllDepartments();
            departmentTreeView.BuildTree();
            departmentTreeView.SelectedNode = departmentTreeView.TopNode;
            Refresh();
        }
Пример #2
0
        private void frmChangeTimeInOut_Load(object sender, System.EventArgs e)
        {
            Refresh();
            timeInOutDO = new TimeInOutDO();
            employeeDO  = new EmployeeDO();
            DepartmentDO departmentDO = new DepartmentDO();

            departmentTreeView.DepartmentDataSet = departmentDO.GetAllDepartments();
            departmentTreeView.BuildTree();
            departmentTreeView.SelectedNode = departmentTreeView.TopNode;
        }