private ListViewItem GetItem(int i) { if (0 <= i && i < result.Count) { var sri = result.GetItem(i); var item = new ListViewItem(sri.Items); item.ImageIndex = sri.ImageIndex; if (sri.BackgroundColor != -1) { item.BackColor = System.Drawing.Color.FromArgb(sri.BackgroundColor); } item.Tag = i; return(item); } else { return(null); } }