in Vault/Explorer/ListViewItemBase.cs [93:110]
public void RepopulateSubItems()
{
SubItems.Clear();
SubItems[0].Name = SubItems[0].Text = Identifier.Name;
SubItems.Add(new ListViewSubItem(this, Utils.NullableDateTimeToString(Updated)) { Tag = Updated }); // Add Tag so ListViewItemSorter will sort DateTime correctly
SubItems.Add(ChangedBy);
SubItems.Add(new ListViewSubItem(this, Utils.ExpirationToString(Expires)) { Tag = Expires }); // Add Tag so ListViewItemSorter will sort TimeSpan correctly
// Add tag value for all the custom columns
for (int i = ListViewSecrets.FirstCustomColumnIndex; i < Session.ListViewSecrets.Columns.Count; i++)
{
string key = Session.ListViewSecrets.Columns[i].Name;
SubItems.Add((null == Tags) || (Tags.Count == 0) || !Tags.ContainsKey(key) ? "" : string.IsNullOrWhiteSpace(Tags[key]) ? "(none)" : Tags[key]);
}
ForeColor = AboutToExpire ? ForeColor : Settings.Default.AboutToExpireItemColor;
ForeColor = Active ? ForeColor : Settings.Default.ExpiredItemColor;
ForeColor = Enabled ? ForeColor : Settings.Default.DisabledItemColor;
}