Пример #1
0
 protected bool ShowDeleteButton(object dataItem)
 {
     CommerceBuilder.Users.Group g = (CommerceBuilder.Users.Group)dataItem;
     if (!IsEditableGroup(dataItem))
     {
         return(false);
     }
     return(UserDataSource.CountForGroup(g.Id) <= 0);
 }
Пример #2
0
 protected int CountUsers(object dataItem)
 {
     CommerceBuilder.Users.Group group = (CommerceBuilder.Users.Group)dataItem;
     return(UserDataSource.CountForGroup(group.Id));
 }