private void btnCapNhat_Click(object sender, EventArgs e) { if (gridViewDsKh.SelectedRowsCount == 1) { KhachHangBUS khbus = new KhachHangBUS(); string id = gridViewDsKh.GetRowCellValue(gridViewDsKh.FocusedRowHandle, gridViewDsKh.Columns[0]).ToString(); frmTextKhachHang ftph = new frmTextKhachHang(this, id); ftph.ShowDialog(); } else { MessageBox.Show("Chọn 1 Phòng Cần Sửa", "", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); return; } }
private void btnThemKH_Click(object sender, EventArgs e) { frmTextKhachHang frm = new frmTextKhachHang(); frm.ShowDialog(); txtCMND.Text = CMND; txtSDT.Text = SDT; txtHT.Text = TenKH; if (GioiTinh.Equals("Nam")) { radNam.Checked = true; } else { radNu.Checked = true; } }
private void btnThemKH_Click(object sender, EventArgs e) { frmTextKhachHang frm = new frmTextKhachHang(this); frm.ShowDialog(); }