コード例 #1
0
        public RolesVM()
        {
            Roles   = new ObservableCollection <Role>(RoleQueries.GetRoles());
            NewRole = new Role();

            newRoleCommand  = new NuevoRoleCommand(this);
            editRoleCommand = new EditRoleCommand(this);
        }
コード例 #2
0
 public PermisoVM()
 {
     Roles       = new ObservableCollection <Role>(RoleQueries.GetRoles());
     Permissions = new ObservableCollection <SubMenuPermission>();
     SelectedRol = new Role();
 }