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