private void btnLamMoi_Click(object sender, EventArgs e) { if (lblWarning.Visible) { MessageBox.Show("Không thể sửa đổi chi tiết món ăn đã được thêm vào thực đơn", "Thông báo", MessageBoxButtons.OK); return; } txtMaMonAn.Text = MonAnBLL.SinhMaTuDong(); txtTenMonAn.Text = ""; }
private void XoaTrang() { txtMaMonAn.Text = MonAnBLL.SinhMaTuDong(); txtTenMonAn.Text = ""; }