public void Reload()
        {
            pnMonAn.Controls.Clear();
            //listMonAn.Clear();
            if (tp.SelectedTab.Text.Trim() == "Tất cả")
            {
                lFood = cFood.GetFood("All", "Yes", "Yes");
            }
            else
            {
                lFood = cFood.GetFood(tp.SelectedTab.Text.Trim(), "Yes", "Yes");
            }


            Point p = new Point(20, 10);

            for (int i = 0; i < lFood.Count; i++)
            {
                UCMonAnQlyThucDon MonAn = new UCMonAnQlyThucDon(lFood[i].ID_Food.ToString(), lFood[i].Name.ToString(), lFood[i].Price.ToString(), lFood[i].Sale.ToString()
                                                                , lFood[i].Status.ToString(), lFood[i].Active, lFood[i].Types.ToString());
                MonAn.Location = p;
                pnMonAn.Controls.Add(MonAn);
                //listMonAn.Add(MonAn);
                p.Y = p.Y + 10 + MonAn.Height;
            }
            System.GC.Collect();
        }
        private void QlyThucDon_Load(object sender, EventArgs e)
        {
            List <GetFood_Result> lFood = cFood.GetFood("All", "Yes", "Yes");

            Point p = new Point(20, 10);

            for (int i = 0; i < lFood.Count; i++)
            {
                UCMonAnQlyThucDon MonAnn = new UCMonAnQlyThucDon(lFood[i].ID_Food.ToString(), lFood[i].Name.ToString(), lFood[i].Price.ToString(), lFood[i].Sale.ToString()
                                                                 , lFood[i].Status.ToString(), lFood[i].Active, lFood[i].Types.ToString());
                //listMonAn.Add(MonAnn);
                MonAnn.Location = p;
                pnMonAn.Controls.Add(MonAnn);
                p.Y = p.Y + 10 + MonAnn.Height;
            }
        }