private void RunMatchSearch(object obj) { KeyValueClass id = new KeyValueClass(); if ((int)obj > 0) { id.Value = (int)obj; } else { id = cmb_matchclient.SelectedItem as KeyValueClass; } SqlDataReader read = People.ReadById((int)id.Value); read.Read(); People p = new People(); PeopleManipulations.ReaderToPeople(ref p, ref read, false, true); read.Close(); ArrayList results = MatchesChecks.GetMatches(p); olstmatch.SetObjects(results); olstmatch.Sort(olvColumn9); picmatch.Visible = false; lblmatchfound.Text = "נמצאו : " + olstmatch.Items.Count.ToString() + " התאמות"; }