private void bntTraPhong_Click(object sender, EventArgs e) { if (gridKhachHang.Rows.Count != 0) { TraPhong traPhong = new TraPhong(); TraPhong.maKH = Convert.ToInt32(gridKhachHang.CurrentRow.Cells[0].Value.ToString()); TraPhong.maTaiKhoan = maTaiKhoan; traPhong.ShowDialog(); Load(); } }
private void CustomePhong_EventThanhToanPhong(object sender, ProcessEventArgs e) { // call thanh toan phong TraPhong traPhong = new TraPhong(); TraPhong.maTaiKhoan = taiKhoan.Ma; TraPhong.maP = e.PHONG.Ma; TraPhong.isSodoKScall = true; traPhong.ShowDialog(); if (TraPhong.result) { LoadPhong(); } }