Пример #1
0
 public void Update()
 {
     DGR.ItemsSource = null;
     using (var db = new ResourceModel())
     {
         DGR.ItemsSource = db.GetPosition();
     }
 }
Пример #2
0
        public void Update()
        {
            DGR.ItemsSource             = null;
            CB_Department.ItemsSource   = null;
            CB_Organization.ItemsSource = null;
            CB_Position.ItemsSource     = null;

            using (var db = new ResourceModel())
            {
                DGR.ItemsSource             = db.GetPeople();
                CB_Department.ItemsSource   = db.GetDepartment();
                CB_Organization.ItemsSource = db.GetOrganization();
                CB_Position.ItemsSource     = db.GetPosition();
            }
        }