private void configCbbChude() { dish = new dishes(); string[] categoryNameList = dish.getCategoriesNameList(); cbbCategory.Items.AddRange(categoryNameList); cbbCategory.SelectedIndex = 0; lbThongbao.Text = ""; }
public editItem(int id, string itemName, string category, int price, string itemDetail) { dish = new dishes(); this.id = id; this.itemName = itemName; this.category = category; this.price = price; this.itemDetail = itemDetail; InitializeComponent(); }
private void createListItemBarPn() { dish = new dishes(); dishInfo = dish.showInfor(); int id = 0, cost = 0; string itemName = "", categoryItem = "", detailItem = ""; for (int i = 0; i < dishInfo.Count; i += 6) { id = Int32.Parse(dishInfo[i].ToString()); itemName = dishInfo[i + 1].ToString(); categoryItem = dishInfo[i + 2].ToString(); detailItem = dishInfo[i + 3].ToString(); cost = Int32.Parse(dishInfo[i + 4].ToString()); createGroupItemLabel(id, itemName, cost, detailItem); } }