private void button1_Click(object sender, EventArgs e) { if (PKEY == null) return; DishRepostitory rep = new DishRepostitory(); rep.SaveComment(PKEY, txtCOMMENT.Text); refresh(); }
private void refresh() { DishRepostitory rep = new DishRepostitory(); List<DishDTO> lst = rep.GetDishList(order_id); grvDISH.DataSource = lst; }