private void btnUpdate_Click(object sender, EventArgs e) { //获得Row里的值 KiwiCrawler.Model.Urlconfigs_k model = GetModelByRow(); frmEdit frmEdit_k = new frmEdit(model); if (frmEdit_k.ShowDialog(this) == DialogResult.Cancel) { dgvTaskCapture.Rows.Clear(); Urlconfigs_kBll urlBll = new Urlconfigs_kBll(); List <Urlconfigs_k> urlList = null; urlList = urlBll.GetModelList("");//后期改成分页的 ListToDataGridView(dgvTaskCapture, urlList); } }
private void btnUpdate_Click(object sender, EventArgs e) { //获得Row里的值 KiwiCrawler.Model.Urlconfigs_k model = GetModelByRow(); frmEdit frmEdit_k = new frmEdit(model); if (frmEdit_k.ShowDialog(this) == DialogResult.Cancel) { dgvTaskCapture.Rows.Clear(); Urlconfigs_kBll urlBll = new Urlconfigs_kBll(); List<Urlconfigs_k> urlList = null; urlList = urlBll.GetModelList("");//后期改成分页的 ListToDataGridView(dgvTaskCapture, urlList); } }