Ejemplo n.º 1
0
        public void UpdateList()
        {
            List <Employee> employeesList = EmployeesController.GetInstance().GetEmployees();

            employeesList.Sort((x, y) => x.TradePoint.Name.CompareTo(y.TradePoint.Name));
            employees = new ObservableCollection <Employee>(employeesList);

            EmployeesList.ItemsSource = employees;
            EmployeesList.Items.Refresh();
            EmployeesList.UpdateLayout();
        }