private void GVNCC_DoubleClick(object sender, EventArgs e) { if (GVNCC.GetSelectedRows().Count() > 0) { _NCC = GVNCC.GetRow(GVNCC.GetSelectedRows()[0]) as O_NHACUNGCAP; if (_NCC != null) { new frmNCCThem(_NCC).ShowDialog(this); } } }
private void rbtn_Click(object sender, EventArgs e) { if (GVNCC.GetSelectedRows().Count() > 0) { O_NHACUNGCAP _NCCO = GVNCC.GetRow(GVNCC.GetSelectedRows()[0]) as O_NHACUNGCAP; if (_NCCO != null) { if (_NCCO.KhachSan) { new frmCongNoKS(_NCCO).ShowDialog(this); } } } }