/**************************************************************************/ protected override void RenderListView( List <ListViewItem> ListViewItems, MacroscopeDocumentCollection DocCollection, MacroscopeDocument msDoc, string Url ) { if (msDoc.IsDocumentType(Type: MacroscopeConstants.DocumentType.HTML)) { Dictionary <string, string> EmailAddresses = msDoc.GetEmailAddresses(); foreach (string EmailAddress in EmailAddresses.Keys) { string PairKey = string.Join("", EmailAddress, Url); ListViewItem lvItem = null; if (this.DisplayListView.Items.ContainsKey(PairKey)) { try { lvItem = this.DisplayListView.Items[PairKey]; lvItem.SubItems[0].Text = EmailAddress; lvItem.SubItems[1].Text = Url; } catch (Exception ex) { DebugMsg(string.Format("MacroscopeDisplayEmailAddresses 1: {0}", ex.Message)); } } else { try { lvItem = new ListViewItem(PairKey); lvItem.UseItemStyleForSubItems = false; lvItem.Name = PairKey; lvItem.SubItems[0].Text = EmailAddress; lvItem.SubItems.Add(Url); ListViewItems.Add(lvItem); } catch (Exception ex) { DebugMsg(string.Format("MacroscopeDisplayEmailAddresses 2: {0}", ex.Message)); } } if (lvItem != null) { lvItem.ForeColor = Color.Blue; // URL -------------------------------------------------------------// if (msDoc.GetIsInternal()) { lvItem.SubItems[1].ForeColor = Color.Green; } else { lvItem.SubItems[1].ForeColor = Color.Gray; } } } } }