public ListViewItemVault(Microsoft.Azure.Management.KeyVault.Models.Vault vault) : base(vault.Name) { Vault = vault; Name = vault.Name; GroupName = s_resourceNameRegex.Match(vault.Id).Groups["GroupName"].Value; SubItems.Add(GroupName); ToolTipText = $"Location: {vault.Location}"; ImageIndex = 1; }
public PropertyObjectVault(Subscription s, string resourceGroupName, Microsoft.Azure.Management.KeyVault.Models.Vault vault) { _subscription = s; _resourceGroupName = resourceGroupName; _vault = vault; Tags = new ObservableTagItemsCollection(); if (null != _vault.Tags) { foreach (var kvp in _vault.Tags) { Tags.Add(new TagItem(kvp)); } } AccessPolicies = new ObservableAccessPoliciesCollection(); int i = -1; foreach (var ape in _vault.Properties.AccessPolicies) { AccessPolicies.Add(new AccessPolicyEntryItem(++i, ape)); } }