Example #1
0
 public void addUcMenuGroup(int productID, int CurrentPage)
 {
     if (productID > 0)
     {
         if (this.totalPage == 0)
         {
             this.totalPage = ModifireService.GetListModifireToProduct(productID).Count();
         }
         var modifireList = ModifireService.GetListModifireToProduct(productID, CurrentPage).ToList();
         this.CurrentPage = CurrentPage;
         if (modifireList.Count > 0)
         {
             flpItemList.Controls.Clear();
             foreach (var item in modifireList)
             {
                 UCItemListButton ucItemListButton = new UCItemListButton();
                 ucItemListButton.lblItemListButton.Text = item.ModifireName;
                 ucItemListButton.Tag = item;
                 flpItemList.Controls.Add(ucItemListButton);
             }
             addButton(productID);
             backButton(productID);
             nextButton(productID);
         }
         else
         {
             addButton(productID);
         }
     }
 }
Example #2
0
 public void addUcMenuGroup(int productID, int CurrentPage)
 {
     if (productID > 0)
     {
         if (this.totalPage == 0)
         {
             this.totalPage = ModifireService.GetListModifireToProduct(productID).Count();
         }
         var modifireList = ModifireService.GetListModifireToProduct(productID, CurrentPage).ToList();
         this.CurrentPage = CurrentPage;
         if (modifireList.Count > 0)
         {
             flpItemList.Controls.Clear();
             foreach (var item in modifireList)
             {
                 UCItemListButton ucItemListButton = new UCItemListButton();
                 ucItemListButton.lblItemListButton.Text = item.ModifireName;
                 ucItemListButton.Tag = item;
                 flpItemList.Controls.Add(ucItemListButton);
             }
             addButton(productID);
             backButton(productID);
             nextButton(productID);
         }
         else
         {
             addButton(productID);
         }
     }
 }
Example #3
0
 void UCItemList_Click(object sender, EventArgs e)
 {
     UCItemListButton ucItemListButton = (UCItemListButton)sender;
 }