private void FillListView(BatchCertificateContainer container) { this.listView1.BeginUpdate(); container.Certs.ToList().ForEach(certData => { ListViewItem lvi = new ListViewItem(certData.StoreLocation.ToString()); lvi.SubItems.Add(certData.StoreNameAsString); lvi.SubItems.Add(certData.CertSubject); lvi.Tag = certData; listView1.Items.Add(lvi); }); this.listView1.EndUpdate(); }
public BatchCertificateContainerImportForm(BatchCertificateContainer container) : this() { this.FillListView(container); }