예제 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmAdd frmAdd_k = new frmAdd();

            //frmAdd_k.ShowDialog();
            if (frmAdd_k.ShowDialog(this) == DialogResult.Cancel)
            {
                //为了保证一致性,不在内存中读对象。
                //KiwiCrawler.Model.Urlconfigs_k urlConfigFrmMode = frmAdd_k.urlFrmMode_k;
                dgvTaskCapture.Rows.Clear();
                Urlconfigs_kBll     urlBll  = new Urlconfigs_kBll();
                List <Urlconfigs_k> urlList = null;
                urlList = urlBll.GetModelList("");//后期改成分页的
                ListToDataGridView(dgvTaskCapture, urlList);
            }
        }
예제 #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmAdd frmAdd_k = new frmAdd();
            //frmAdd_k.ShowDialog();
            if (frmAdd_k.ShowDialog(this) == DialogResult.Cancel)
            {
                //为了保证一致性,不在内存中读对象。
                //KiwiCrawler.Model.Urlconfigs_k urlConfigFrmMode = frmAdd_k.urlFrmMode_k;
                dgvTaskCapture.Rows.Clear();
                Urlconfigs_kBll urlBll = new Urlconfigs_kBll();
                List<Urlconfigs_k> urlList = null;
                urlList = urlBll.GetModelList("");//后期改成分页的          
                ListToDataGridView(dgvTaskCapture, urlList);
            }

        }