private void btadd_Click(object sender, EventArgs e) { using (FrmWebSpiderListInfo form = new FrmWebSpiderListInfo("", pids, "0")) { form.StartPosition = FormStartPosition.CenterScreen; form.ShowDialog(this); if (form.IsOper) { LoadSpiderInfoList(); } } }
private void contentlist_DoubleClick(object sender, EventArgs e) { if (contentlist.SelectedItems.Count > 0) { int idindex = contentlist.SelectedItems[0].SubItems.Count - 1; string ids = contentlist.SelectedItems[0].SubItems[idindex].Text.Trim(); if (ids != "") { using (FrmWebSpiderListInfo form = new FrmWebSpiderListInfo(ids, pids, "1")) { form.StartPosition = FormStartPosition.CenterScreen; form.ShowDialog(this); if (form.IsOper) { LoadSpiderInfoList(); } } } } }