Example #1
0
        public async override Task InitQuery()
        {
            var users = (CompanyUserAccessClient[])await companyAPI.GetUserRights(new CompanyUserAccessClient());

            dgCompanyUsersGrid.ItemsSource   = null;
            dgCompanyUsersGrid.ItemsSource   = users?.ToList();
            dgCompanyUsersGrid.Visibility    = Visibility.Visible;
            dgCompanyUsersGrid.BusyIndicator = busyIndicator;
            dgCompanyUsersGrid.tableView.FocusedRowHandle = selectedRowIndex;
        }
        async void LoadCompanyUsers(CrudAPI crudApi)
        {
            var companyAPI = new CompanyAccessAPI(crudApi);

            companyUsers = (CompanyUserAccessClient[])await companyAPI.GetUserRights(new CompanyUserAccessClient());
        }