private void PopulateWebResults() { int i = 0; this.Invoke(this.del_ctl_ctl_clr, new Object[] { this.tpg_web }); this.Invoke(this.del_ctl_sus_lot, new Object[] { this.tpg_web, true }); for (i = lvw_results.Items.Count; i > 0; i--) { ListViewItem the_itm = (ListViewItem)this.Invoke(this.del_ctl_lst_itm, new Object[] { lvw_results, i - 1 }); Image img; String titl; String link; String snip; String stat; if (the_itm.SubItems[0].Text.ToLower() == "google") { img = res_images.google; } else if (the_itm.SubItems[0].Text.ToLower() == "live") { img = res_images.msn_live; } else { img = res_images.yahoo; } titl = the_itm.SubItems[1].Text; link = the_itm.SubItems[2].Text; snip = the_itm.SubItems[3].Text; stat = the_itm.SubItems[5].Text; ctl_results the_res = new ctl_results(img, titl, link, snip, stat); the_res.MaximumSize = new Size(tpg_web.Width, 0); the_res.Dock = DockStyle.Top; this.Invoke(this.del_ctl_ctl_add, new Object[] { tpg_web, the_res }); Panel the_pnl = new Panel(); the_pnl.Height = 10; the_pnl.Dock = DockStyle.Top; this.Invoke(this.del_ctl_ctl_add, new Object[] { tpg_web, the_pnl }); } this.Invoke(this.del_ctl_sus_lot, new Object[] { this.tpg_web, false }); }
private void PopulateWebResults() { int i = 0; this.Invoke(this.del_ctl_ctl_clr, new Object[] { this.tpg_web }); this.Invoke(this.del_ctl_sus_lot, new Object[] { this.tpg_web, true }); for (i = lvw_results.Items.Count; i > 0; i--) { ListViewItem the_itm = (ListViewItem)this.Invoke(this.del_ctl_lst_itm, new Object[] { lvw_results, i - 1 }); Image img; String titl; String link; String snip; String stat; if (the_itm.SubItems[0].Text.ToLower() == "google") img = res_images.google; else if (the_itm.SubItems[0].Text.ToLower() == "live") img = res_images.msn_live; else img = res_images.yahoo; titl = the_itm.SubItems[1].Text; link = the_itm.SubItems[2].Text; snip = the_itm.SubItems[3].Text; stat = the_itm.SubItems[5].Text; ctl_results the_res = new ctl_results(img, titl, link, snip, stat); the_res.MaximumSize = new Size(tpg_web.Width, 0); the_res.Dock = DockStyle.Top; this.Invoke(this.del_ctl_ctl_add, new Object[] { tpg_web, the_res }); Panel the_pnl = new Panel(); the_pnl.Height = 10; the_pnl.Dock = DockStyle.Top; this.Invoke(this.del_ctl_ctl_add, new Object[] { tpg_web, the_pnl }); } this.Invoke(this.del_ctl_sus_lot, new Object[] { this.tpg_web, false }); }