private void SelectGroupMenu() { try { UCGroupMenuOrder ucGroupMenuOrder = new UCGroupMenuOrder(); ucGroupMenuOrder = (UCGroupMenuOrder)flpGroupMenu.Controls[0]; CatalogueMain = (CatalogueModel)ucGroupMenuOrder.Tag; ucGroupMenuOrder.BackColor = Color.FromArgb(0, 102, 0); ucGroupMenuOrder.ForeColor = Color.FromArgb(255, 255, 255); CatalogueModel item = (CatalogueModel)ucGroupMenuOrder.Tag; loadCategoryOfCatalogue(item.CatalogueID); } catch (Exception ex) { LogPOS.WriteLog("SelectGroupMenu::::::::::::::::::::::::::::::" + ex.Message); } }
private void LoadMenuGroup() { try { var listCatalogue = CatalogeService.GetCatalogueList(); foreach (CatalogueModel item in listCatalogue) { UCGroupMenuOrder ucGroupMenuOrder = new UCGroupMenuOrder(); ucGroupMenuOrder.lblGroupNameMenuOrder.Text = item.CatalogueName; ucGroupMenuOrder.Tag = item; ucGroupMenuOrder.Click += ucGroupMenuOrder_Click; ; flpGroupMenu.Controls.Add(ucGroupMenuOrder); } } catch (Exception ex) { LogPOS.WriteLog("LoadMenuGroup::::::::::::::::::::::::::::::::::::" + ex.Message); } }