Beispiel #1
0
 private void TreeInit()
 {
     _departmentRepository.GetAsync().ContinueWith(loadTask =>
     {
         TrList_structure.DataSource = _departmentService.GetAllDepartments();
     }, TaskScheduler.FromCurrentSynchronizationContext());
     TrList_structure.ExpandAll();
 }
Beispiel #2
0
 private void DgwDepartments_Settings()
 {
     Dgw_departments.TopLeftHeaderCell.Value        = "#";
     Dgw_departments.Columns["Department1"].Visible = false;
     Dgw_departments.Columns["Department2"].Visible = false;
     Dgw_departments.Columns["Empoyees"].Visible    = false;
     TrList_structure.ExpandAll();
 }