public void DisplayNewFood(Food f)
 {
     Views.Foods food = new Views.Foods(f.Id, f.Name, f.Unit, f.Price, f.Picture);
     food.BtnDeleteFoodClick(new DeleteFoodHandle(this, f).Handle);
     food.BtnEditFoodClick(new GetFoodByIdHandle(this, f).Handle);
     this.fpFoodList.Controls.Add(food);
     this.Refresh();
 }
        //DisplayFoodlist
        public void DisplayFoodList(List <Food> list)
        {
            if (ListFood.Count == 0)
            {
                ListFood = list;
            }
            this.fpFoodList.Controls.Clear();
            foreach (var f in list)
            {
                Views.Foods food = new Views.Foods(f.Id, f.Name, f.Unit, f.Price, f.Picture);

                food.BtnDeleteFoodClick(new DeleteFoodHandle(this, f).Handle);
                food.BtnEditFoodClick(new GetFoodByIdHandle(this, f).Handle);
                this.fpFoodList.Controls.Add(food);
                this.Refresh();
            }
        }