예제 #1
0
        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;
        }
예제 #2
0
 private void update_pra_table()
 {
     PermissionRoleGrid.ItemsSource = access.getPRAView();
 }