예제 #1
0
 private void DataPortal_Fetch(Criteria criteria)
 {
     if (criteria.ResourceId == -1)
     {
         Resource = ResourceEdit.NewResourceEdit();
     }
     else
     {
         Resource = ResourceEdit.GetResourceEdit(criteria.ResourceId);
     }
     if (criteria.GetRoles)
     {
         RoleList = RoleList.GetCachedList();
     }
 }
예제 #2
0
 private void Fetch(int resourceId, bool getRoles)
 {
     if (resourceId == -1)
     {
         Resource = ResourceEdit.NewResourceEdit();
     }
     else
     {
         Resource = ResourceEdit.GetResourceEdit(resourceId);
     }
     if (getRoles)
     {
         RoleList = RoleList.GetCachedList();
     }
 }