public AdminWindow() { InitializeComponent(); access = new RoleBasedAccessControlSystem(true); UserGrid.ItemsSource = access.UserTable.DefaultView; RoleGrid.ItemsSource = access.RoleTable.DefaultView; PermissionGrid.ItemsSource = access.PermissionTable.DefaultView; ExclusionGrid.ItemsSource = access.ExclusionTable.DefaultView; UserRoleGrid.ItemsSource = access.getURAView(); PermissionRoleGrid.ItemsSource = access.getPRAView(); RoleRoleGrid.ItemsSource = access.getRRAView(); access.handler += Tick; handler += Tick; }
private void update_pra_table() { PermissionRoleGrid.ItemsSource = access.getPRAView(); }