//================================================================================ private void lstResults_RetrieveVirtualItem(object sender, RetrieveVirtualItemEventArgs e) { if (e == null) { Debug.WriteLine("RetrieveVirtualItemEventArgs is null"); e.Item = new ListViewItem("?"); return; } if (e.ItemIndex < 0 || e.ItemIndex >= aResults.Count) { Debug.WriteLine("incorrect ItemIndex = " + e.ItemIndex); e.Item = new ListViewItem("?"); return; } try { var res = aResults[e.ItemIndex]; e.Item = new ListViewItem(res); } catch (Exception ex) { Debug.WriteLine(ex); e.Item = new ListViewItem("?"); CajApp.addLog("search: " + ex.Message); } }
//================================================================================ private void onFilterQueryEnd() { if (aParticleFilePaths == null) { Debug.WriteLine("onFilterQueryEnd.updateCheckList == null"); } else { CajApp.addLog("records found: " + aParticleFilePaths.Count); vlstCheckList.onQueryStart(); vlstCheckList.onQueryEnd(aParticleFilePaths); } }