private void btnXem_Click(object sender, EventArgs e) { if (soHoaDon != "") { frmGoiMon goiMon = new frmGoiMon(soHoaDon, null); goiMon.ShowDialog(); } }
private void btnThanhToan_Click(object sender, EventArgs e) { try { string soHoaDon = BUS.HoaDonBUS.LayMaHoaDon(listPhongLayout[indexHienTai].Phong.Ten); if (BUS.HoaDonBUS.HoaDonDatTiec(soHoaDon)) { frmChonMon chonMon = new frmChonMon(soHoaDon); chonMon.ShowDialog(); } else { frmGoiMon goiMon = new frmGoiMon(soHoaDon, this); goiMon.ShowDialog(); } } catch (Exception) { } }