Ejemplo n.º 1
0
 public ShelfModuleTwo(long[] groupIds)
 {
     GroupInfos        = new ShelfGroupInfos(4);
     GroupInfos.Groups = groupIds.Select(g => new ShelfGroupInfo()
     {
         GroupID = g
     });
 }
Ejemplo n.º 2
0
 public ShelfModuleFive(long[] groupId, string imgbackupground)
 {
     GroupInfos = new ShelfGroupInfos(10)
     {
         Groups = groupId.Take(10)
                  .Select(s => new ShelfGroupInfo {
             GroupID = s
         }),
         ImgBackground = imgbackupground
     };
 }
Ejemplo n.º 3
0
        public ShelfModuleFour(IEnumerable <ShelfGroupInfo> groupInfos)
        {
            var groups = groupInfos.Take(3)
                         .Select(g => new ShelfGroupInfo()
            {
                GroupID = g.GroupID,
                Img     = g.Img
            });

            GroupInfos = new ShelfGroupInfos(3)
            {
                Groups = groups
            };
        }