void bindPiclist() { this.picList.Clear(); this.imageList1.Images.Clear(); DateTime time = ImageSearch.getDateTimeStr(videoList.FocusedItem.Tag as string); Camera selectedCamera = this.comboBox1.SelectedItem as Camera; ImagePair[] faces = null; try { faces = SearchProxy.FacesCapturedAt(2, time); } catch (System.ServiceModel.CommunicationException) { MessageBox.Show("通讯错误, 请重试"); IChannel ch = SearchProxy as IChannel; if (ch.State == CommunicationState.Faulted) { this.CreateProxy(); } return; } if (faces.Length == 0) { return; } foreach (var aFace in faces) { this.imageList1.Images.Add(aFace.Face); string text = System.IO.Path.GetFileName(aFace.FacePath); ListViewItem item = new ListViewItem { Tag = aFace, Text = text, ImageIndex = this.imageList1.Images.Count - 1, }; this.picList.Items.Add(item); } this.picList.Scrollable = true; this.picList.MultiSelect = false; this.picList.View = View.LargeIcon; this.picList.LargeImageList = imageList1; }