//hiennv private void btnSave_Click(object sender, EventArgs e) { try { if (this.CheckDataBeforeAddNew() == true) { ReceptionTaskBO aReceptionTaskBO = new ReceptionTaskBO(); aMenusEN.ID = this.IDMenu; aMenusEN.Name = txtMenusName.Text; aMenusEN.Info =txtInfo.Text; aMenusEN.IDBookingHall = 0; //thuc don thong dung aMenusEN.IDSystemUser = 1;//de tam aReceptionTaskBO.UpdateMenus(aMenusEN); if (this.afrmLst_Menus != null) { this.afrmLst_Menus.LoadDataMenus(); } MessageBox.Show("Cập nhật thực đơn thành công.", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); this.Close(); } } catch (Exception ex) { MessageBox.Show("frmUpd_Menus.CheckDataBeforeAddNew\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } }