Esempio n. 1
0
 internal void ChangeResultNodeSelection(ResultNode node, bool selectionState)
 {
     base.ThrowIfShutdown("SendSelectionRequest");
     int index = this.ResultNodes.IndexOf(node);
     if (index == -1)
     {
         throw new ArgumentException(Microsoft.ManagementConsole.Internal.Utility.LoadResourceString(Microsoft.ManagementConsole.Internal.Strings.ListViewChangeResultNodeSelectionNotExist));
     }
     if (!base.Initialized || !base.Visible)
     {
         TraceSources.ExecutiveSource.TraceEvent(TraceEventType.Warning, 12, "Ignoring selection request since view hasn't been initialized or is hidden.");
     }
     else
     {
         ISnapInPlatform snapInPlatform = base.SnapIn.SnapInPlatform;
         if (snapInPlatform == null)
         {
             throw Microsoft.ManagementConsole.Internal.Utility.CreateClassNotInitializedException("MmcListView", "ChangeResultNodeSelection");
         }
         SelectResultNodeCommand command = new SelectResultNodeCommand();
         command.ViewInstanceId = base.ViewInstanceId;
         command.SelectionState = selectionState;
         command.Index = index;
         snapInPlatform.ProcessCommand(command);
     }
 }
Esempio n. 2
0
 private void Notify(int index, ResultNode[] items, ResultNodeCollectionChangeType action)
 {
     if (this.ItemsChanged != null)
     {
         this.ItemsChanged(this, new ResultNodeCollectionEventArgs(index, items, action));
     }
 }
        protected override void Refresh()
        {
            this.ResultNodes.Clear();
            List <MMC.ResultNode> list = new List <MMC.ResultNode>();

            if (((ApplicationGroupScopeNode)this.ScopeNode).ApplicationGroup.GroupType == GroupType.Basic)
            {
                IAzManApplicationGroupMember[] allMembers = ((ApplicationGroupScopeNode)this.ScopeNode).ApplicationGroup.GetApplicationGroupAllMembers();
                foreach (IAzManApplicationGroupMember member in allMembers)
                {
                    string         sMemberNonMember = member.IsMember ? Globalization.MultilanguageResource.GetString("Domain_Member") : Globalization.MultilanguageResource.GetString("Domain_NonMember");
                    MMC.ResultNode resultNode       = new MMC.ResultNode();
                    string         displayName;
                    MemberType     memberType = member.GetMemberInfo(out displayName);
                    resultNode.DisplayName = displayName;
                    switch (memberType)
                    {
                    case MemberType.AnonymousSID: resultNode.ImageIndex = ImageIndexes.SidNotFoundImgIdx; break;

                    case MemberType.ApplicationGroup: resultNode.ImageIndex = ImageIndexes.ApplicationGroupBasicImgIdx; break;

                    case MemberType.StoreGroup: resultNode.ImageIndex = ImageIndexes.StoreGroupBasicImgIdx; break;

                    case MemberType.WindowsNTGroup: resultNode.ImageIndex = ImageIndexes.WindowsGroupImgIdx; break;

                    case MemberType.WindowsNTUser: resultNode.ImageIndex = ImageIndexes.WindowsUserImgIdx; break;

                    case MemberType.DatabaseUser: resultNode.ImageIndex = ImageIndexes.DatabaseUserImgIdx; break;
                    }
                    resultNode.SubItemDisplayNames.AddRange(
                        new string[] {
                        member.WhereDefined.ToString(),
                        sMemberNonMember,
                        member.SID.StringValue
                    });
                    list.Add(resultNode);
                }
            }
            else
            {
                MMC.ResultNode resultNode = new MMC.ResultNode();
                resultNode.ImageIndex  = ImageIndexes.ApplicationGroupLDAPImgIdx;
                resultNode.DisplayName = ((ApplicationGroupScopeNode)this.ScopeNode).ApplicationGroup.Name;
                resultNode.SubItemDisplayNames.AddRange(
                    new string[]
                    { ((ApplicationGroupScopeNode)this.ScopeNode).ApplicationGroup.Description,
                      ((ApplicationGroupScopeNode)this.ScopeNode).ApplicationGroup.LDAPQuery });
                list.Add(resultNode);
            }
            this.ResultNodes.AddRange(list.ToArray());
        }
 protected override void Refresh()
 {
     this.ResultNodes.Clear();
     List<MMC.ResultNode> list = new List<MMC.ResultNode>();
     if (((StoreGroupScopeNode)this.ScopeNode).StoreGroup.GroupType == GroupType.Basic)
     {
         IAzManStoreGroupMember[] allMembers = ((StoreGroupScopeNode)this.ScopeNode).StoreGroup.GetStoreGroupAllMembers();
         foreach (IAzManStoreGroupMember member in allMembers)
         {
             string sMemberNonMember = member.IsMember ? Globalization.MultilanguageResource.GetString("Domain_Member") : Globalization.MultilanguageResource.GetString("Domain_NonMember");
             MMC.ResultNode resultNode = new MMC.ResultNode();
             string displayName;
             MemberType memberType = member.GetMemberInfo(out displayName);
             resultNode.DisplayName = displayName;
             switch (memberType)
             {
                 case MemberType.AnonymousSID: resultNode.ImageIndex = ImageIndexes.SidNotFoundImgIdx; break;
                 case MemberType.ApplicationGroup: resultNode.ImageIndex = ImageIndexes.ApplicationGroupBasicImgIdx; break;
                 case MemberType.StoreGroup: resultNode.ImageIndex = ImageIndexes.StoreGroupBasicImgIdx; break;
                 case MemberType.WindowsNTGroup: resultNode.ImageIndex = ImageIndexes.WindowsGroupImgIdx; break;
                 case MemberType.WindowsNTUser: resultNode.ImageIndex = ImageIndexes.WindowsUserImgIdx; break;
                 case MemberType.DatabaseUser: resultNode.ImageIndex = ImageIndexes.DatabaseUserImgIdx; break;
             }
             resultNode.SubItemDisplayNames.AddRange(
                 new string[] {
                 member.WhereDefined.ToString(),
                 sMemberNonMember,
                 member.SID.StringValue});
             list.Add(resultNode);
         }
     }
     else
     {
         MMC.ResultNode resultNode = new MMC.ResultNode();
         resultNode.ImageIndex = ImageIndexes.StoreGroupLDAPImgIdx;
         resultNode.DisplayName = ((StoreGroupScopeNode)this.ScopeNode).StoreGroup.Name;
         resultNode.SubItemDisplayNames.AddRange(
             new string[]
             { ((StoreGroupScopeNode)this.ScopeNode).StoreGroup.Description,
             ((StoreGroupScopeNode)this.ScopeNode).StoreGroup.LDAPQuery});
         list.Add(resultNode);
     }
     this.ResultNodes.AddRange(list.ToArray());
 }
Esempio n. 5
0
        protected override void Refresh()
        {
            this.ResultNodes.Clear();
            List <MMC.ResultNode> list       = new List <MMC.ResultNode>();
            IAzManItem            parentItem = ((ItemDefinitionScopeNode)this.ScopeNode).Item;

            IAzManItem[] allMembers = parentItem.GetMembers();
            foreach (IAzManItem member in allMembers)
            {
                if (member.ItemType != ItemType.Operation
                    ||
                    member.ItemType == ItemType.Operation && member.Application.Store.Storage.Mode == NetSqlAzManMode.Developer)
                {
                    MMC.ResultNode resultNode = new MMC.ResultNode();
                    resultNode.DisplayName = member.Name;
                    switch (member.ItemType)
                    {
                    case ItemType.Role:
                        resultNode.ImageIndex = ImageIndexes.RoleImgIdx;
                        break;

                    case ItemType.Task:
                        resultNode.ImageIndex = ImageIndexes.TaskImgIdx;
                        break;

                    case ItemType.Operation:
                        resultNode.ImageIndex = ImageIndexes.OperationImgIdx;
                        break;
                    }
                    resultNode.SubItemDisplayNames.AddRange(
                        new string[] {
                        member.ItemType.ToString(),
                        member.Description,
                        member.ItemId.ToString()
                    });
                    list.Add(resultNode);
                }
            }
            this.ResultNodes.AddRange(list.ToArray());
        }
 protected override void Refresh()
 {
     this.ResultNodes.Clear();
     List<MMC.ResultNode> list = new List<MMC.ResultNode>();
     IAzManItem parentItem = ((ItemDefinitionScopeNode)this.ScopeNode).Item;
     IAzManItem[] allMembers = parentItem.GetMembers();
     foreach (IAzManItem member in allMembers)
     {
         if (member.ItemType != ItemType.Operation
             ||
             member.ItemType == ItemType.Operation && member.Application.Store.Storage.Mode == NetSqlAzManMode.Developer)
         {
             MMC.ResultNode resultNode = new MMC.ResultNode();
             resultNode.DisplayName = member.Name;
             switch (member.ItemType)
             {
                 case ItemType.Role:
                     resultNode.ImageIndex = ImageIndexes.RoleImgIdx;
                     break;
                 case ItemType.Task:
                     resultNode.ImageIndex = ImageIndexes.TaskImgIdx;
                     break;
                 case ItemType.Operation:
                     resultNode.ImageIndex = ImageIndexes.OperationImgIdx;
                     break;
             }
             resultNode.SubItemDisplayNames.AddRange(
                 new string[] {
                 member.ItemType.ToString(),
                 member.Description,
                 member.ItemId.ToString()});
             list.Add(resultNode);
         }
     }
     this.ResultNodes.AddRange(list.ToArray());
 }
Esempio n. 7
0
 public void Remove(ResultNode item)
 {
     base.List.Remove(item);
 }
Esempio n. 8
0
 public void InsertRange(int index, ResultNode[] items)
 {
     base.InsertRange(index, items);
 }
Esempio n. 9
0
 public void Insert(int index, ResultNode item)
 {
     base.Insert(index, item);
 }
Esempio n. 10
0
 public int IndexOf(ResultNode item)
 {
     return base.List.IndexOf(item);
 }
Esempio n. 11
0
 public void CopyTo(ResultNode[] array, int index)
 {
     this.CopyTo(array, index);
 }
Esempio n. 12
0
 private void SynchronizeResultNodes(ResultNode[] items, int index, ResultNodeCollectionChangeType changeType)
 {
     ISnapInPlatform snapInPlatform = base.SnapIn.SnapInPlatform;
     if (snapInPlatform == null)
     {
         throw Microsoft.ManagementConsole.Internal.Utility.CreateClassNotInitializedException("MmcListView", "SynchronizeResultNodes");
     }
     if (items == null)
     {
         throw new ArgumentNullException("items");
     }
     if (items.Length < 1)
     {
         TraceSources.ExecutiveSource.TraceEvent(TraceEventType.Verbose, 12, "Empty result nodes update for view {0}.", new object[] { base.ViewInstanceId });
     }
     else
     {
         UpdateResultNodesCommand command = new UpdateResultNodesCommand();
         command.ViewInstanceId = base.ViewInstanceId;
         command.ChangeType = changeType;
         command.Index = index;
         NodeData[] data = new NodeData[items.Length];
         for (int i = 0; i < items.Length; i++)
         {
             data[i] = items[i].Data;
         }
         command.SetData(data);
         snapInPlatform.ProcessCommand(command);
     }
 }
 protected override void Refresh()
 {
     this.ResultNodes.Clear();
     IAzManAuthorization[] authorizations = ((ItemAuthorizationScopeNode)this.ScopeNode).Item.GetAuthorizations();
     List<MMC.ResultNode> list = new List<MMC.ResultNode>();
     foreach (IAzManAuthorization authorization in authorizations)
     {
         MMC.ResultNode resultNode = new MMC.ResultNode();
         resultNode.Tag = authorization;
         string sAuthType;
         switch (authorization.AuthorizationType)
         {
             default:
             case AuthorizationType.Neutral: sAuthType = Globalization.MultilanguageResource.GetString("Domain_Neutral"); break;
             case AuthorizationType.Allow: sAuthType = Globalization.MultilanguageResource.GetString("Domain_Allow"); break;
             case AuthorizationType.AllowWithDelegation: sAuthType = Globalization.MultilanguageResource.GetString("Domain_AllowWithDelegation"); break;
             case AuthorizationType.Deny: sAuthType = Globalization.MultilanguageResource.GetString("Domain_Deny"); break;
         }
         string displayName;
         MemberType memberType = authorization.GetMemberInfo(out displayName);
         string ownerName;
         MemberType ownerType = authorization.GetOwnerInfo(out ownerName);
         resultNode.DisplayName = displayName;
         switch (memberType)
         {
             case MemberType.AnonymousSID: resultNode.ImageIndex = ImageIndexes.SidNotFoundImgIdx; break;
             case MemberType.ApplicationGroup:
                 if (((ItemAuthorizationScopeNode)this.ScopeNode).Item.Application.GetApplicationGroup(authorization.SID).GroupType == GroupType.Basic)
                 {
                     resultNode.ImageIndex = ImageIndexes.ApplicationGroupBasicImgIdx;
                 }
                 else
                 {
                     resultNode.ImageIndex = ImageIndexes.ApplicationGroupLDAPImgIdx;
                 }
                 break;
             case MemberType.StoreGroup:
                 if (((ItemAuthorizationScopeNode)this.ScopeNode).Item.Application.Store.GetStoreGroup(authorization.SID).GroupType == GroupType.Basic)
                 {
                     resultNode.ImageIndex = ImageIndexes.StoreGroupBasicImgIdx;
                 }
                 else
                 {
                     resultNode.ImageIndex = ImageIndexes.StoreGroupLDAPImgIdx;
                 }
                 break;
             case MemberType.WindowsNTGroup: resultNode.ImageIndex = ImageIndexes.WindowsGroupImgIdx; break;
             case MemberType.WindowsNTUser: resultNode.ImageIndex = ImageIndexes.WindowsUserImgIdx; break;
             case MemberType.DatabaseUser: resultNode.ImageIndex = ImageIndexes.DatabaseUserImgIdx; break;
         }
         string sidWDS = String.Empty;
         switch (authorization.SidWhereDefined.ToString())
         {
             case "LDAP": sidWDS = Globalization.MultilanguageResource.GetString("WhereDefined_LDAP"); break;
             case "Local": sidWDS = Globalization.MultilanguageResource.GetString("WhereDefined_Local"); break;
             case "Database": sidWDS = Globalization.MultilanguageResource.GetString("WhereDefined_DB"); break;
             case "Store": sidWDS = Globalization.MultilanguageResource.GetString("WhereDefined_Store"); break;
             case "Application": sidWDS = Globalization.MultilanguageResource.GetString("WhereDefined_Application"); break;
         }
         resultNode.SubItemDisplayNames.AddRange(
             new string[] {
                 sAuthType,
                 sidWDS,
                 ownerName,
                 (authorization.ValidFrom.HasValue ? authorization.ValidFrom.Value.ToString() : String.Empty),
                 (authorization.ValidTo.HasValue ? authorization.ValidTo.Value.ToString() : String.Empty),
                 authorization.SID.StringValue});
         list.Add(resultNode);
     }
     this.ResultNodes.AddRange(list.ToArray());
 }
Esempio n. 14
0
        /// <summary>
        /// Adds the result node.
        /// </summary>
        /// <param name="key">The key.</param>
        /// <param name="value">The value.</param>
        private void AddServerPropertyNode(string key, string value, int imageIndex)
        {
            ResultNode node = new ResultNode();
            node.DisplayName = key;
            node.ImageIndex = imageIndex;
            node.SubItemDisplayNames.Add(value ?? "");

            this.ResultNodes.Add(node);
        }
Esempio n. 15
0
 protected override void OnItemsAdded(int index, object[] items)
 {
     if (!this._ignoreChanges)
     {
         if (this._listView.SortingInProgress)
         {
             throw new InvalidOperationException(Microsoft.ManagementConsole.Internal.Utility.LoadResourceString(Microsoft.ManagementConsole.Internal.Strings.ResultNodeCollectionOnItemsAddedResultNodeAdd));
         }
         foreach (ResultNode node in items)
         {
             if (node.ListView != null)
             {
                 throw new InvalidOperationException(Microsoft.ManagementConsole.Internal.Utility.LoadResourceString(Microsoft.ManagementConsole.Internal.Strings.ResultNodeCollectionOnItemsAddedMultipleInstance));
             }
             node.ListView = this._listView;
             node.Changed += new Node.NodeChangedEventHandler(this.ItemChanged);
             this._itemsById[node.Id] = node;
         }
         ResultNode[] destinationArray = new ResultNode[items.Length];
         Array.Copy(items, destinationArray, items.Length);
         this.Notify(index, destinationArray, ResultNodeCollectionChangeType.Add);
     }
 }
        public void InitializePageControl()
        {
            serviceResultNode = (ResultNode)startupPropertyPage.ParentSheet.SelectionObject;

            ManagementObjectSearcher ServiceQuery = new ManagementObjectSearcher
                ("Select * from Win32_Service Where DisplayName ='" + serviceResultNode.DisplayName + "'");

            foreach (ManagementObject ServiceObject in ServiceQuery.Get())
            {
                TextBoxDisplayName.Text = ServiceObject.GetPropertyValue("DisplayName").ToString();
                ComboBoxStartupType.SelectedItem = ServiceObject.GetPropertyValue("StartMode").ToString();
            }
        }
        void Refresh()
        {
            this.ResultNodes.Clear();

            // Retrieve data to populate the list with.
            ManagementObjectSearcher searcher = new ManagementObjectSearcher("select * from Win32_service");
            ManagementObjectCollection results = searcher.Get();

            // Populate the list.
            foreach (ManagementObject result in results)
            {
                ResultNode node = new ResultNode();
                node.DisplayName = (string)result.GetPropertyValue("DisplayName");

                string description = (string)result.GetPropertyValue("Description");
                string state = (string)result.GetPropertyValue("State");
                string startMode = (string)result.GetPropertyValue("StartMode");
                string startName = (string)result.GetPropertyValue("StartName");

                description = (description == null) ? String.Empty : description;
                state = (state == null) ? String.Empty : state;
                startMode = (startMode == null) ? String.Empty : startMode;
                startName = (startName == null) ? String.Empty : startName;

                node.SubItemDisplayNames.AddRange(new string[]
                                        { description,
                                            state,
                                            startMode,
                                            startName
                                        });

                ResultNodes.Add(node);
            }
        }
Esempio n. 18
0
        private void Refresh()
        {
            ResultNodes.Clear();

            foreach (Task wmiTask in Task.GetInstances())
            {
                ResultNode taskNode = new ResultNode();
                taskNode.DisplayName = wmiTask.Name;
                taskNode.ImageIndex = GetTaskIcon(wmiTask.Completed);

                taskNode.SubItemDisplayNames.AddRange(new string[]
                {
                    wmiTask.TaskId.ToString(),
                    SnapInShared.FormatDateTime(wmiTask.Start),
                    SnapInShared.FormatDateTime(wmiTask.End),
                    SnapInShared.FormatTimeSpan(wmiTask.Duration),
                    wmiTask.Completed.ToString()
                });

                taskNode.Tag = wmiTask;
                ResultNodes.Add(taskNode);
            }
        }
Esempio n. 19
0
 private string GetStringToCompare(ResultNode node)
 {
     string str = string.Empty;
     if (this._columnIndex == 0)
     {
         return node.DisplayName;
     }
     if (this._columnIndex <= node.SubItemDisplayNames.Count)
     {
         str = node.SubItemDisplayNames[this._columnIndex - 1];
     }
     return str;
 }
        public void InitializePageControl()
        {
            serviceResultNode = (ResultNode)generalPropertyPage.ParentSheet.SelectionObject;

            ManagementObjectSearcher ServiceQuery = new ManagementObjectSearcher
                ("Select * from Win32_Service Where DisplayName ='" + serviceResultNode.DisplayName + "'");

            foreach (ManagementObject ServiceObject in ServiceQuery.Get())
            {
                TextBoxDisplayName.Text = ServiceObject.GetPropertyValue("DisplayName").ToString();
                TextBoxName.Text = ServiceObject.GetPropertyValue("Name").ToString();
                TextBoxDescription.Text = ServiceObject.GetPropertyValue("Description").ToString();
            }
        }
Esempio n. 21
0
 internal void Replace(ResultNode[] nodes)
 {
     this._ignoreChanges = true;
     base.Clear();
     this.AddRange(nodes);
     this._ignoreChanges = false;
 }
 public ResultNodeCollectionEventArgs(int index, ResultNode[] items, ResultNodeCollectionChangeType changeType)
 {
     this._index = index;
     this._items = items;
     this._changeType = changeType;
 }
Esempio n. 23
0
 public void Add(ResultNode item)
 {
     base.List.Add(item);
 }
Esempio n. 24
0
 public void AddRange(ResultNode[] items)
 {
     base.AddRange(items);
 }
Esempio n. 25
0
 public bool Contains(ResultNode item)
 {
     return base.List.Contains(item);
 }
Esempio n. 26
0
        /// <summary>
        /// Load the list with data. (In this case fictional data.)
        /// </summary>
        protected void Refresh()
        {
            // Get some fictitious data to populate the lists with
            string[][] users = { new string[] {"Karen", "February 14th"},
                                        new string[] {"Sue", "May 5th"},
                                        new string[] {"Tina", "April 15th"},
                                        new string[] {"Lisa", "March 27th"},
                                        new string[] {"Tom", "December 25th"},
                                        new string[] {"John", "January 1st"},
                                        new string[] {"Harry", "October 31st"},
                                        new string[] {"Bob", "July 4th"}
                                    };

            // remove existing data
            this.ResultNodes.Clear();

            // repopulate list
            foreach (string[] user in users)
            {
                ResultNode userNode = new ResultNode();
                userNode.DisplayName = user[0];
                userNode.SubItemDisplayNames.Add(user[1]);
                this.ResultNodes.Add(userNode);
            }
        }
        protected override void Refresh()
        {
            this.ResultNodes.Clear();
            IAzManAuthorization[] authorizations = ((ItemAuthorizationScopeNode)this.ScopeNode).Item.GetAuthorizations();
            List <MMC.ResultNode> list           = new List <MMC.ResultNode>();

            foreach (IAzManAuthorization authorization in authorizations)
            {
                MMC.ResultNode resultNode = new MMC.ResultNode();
                resultNode.Tag = authorization;
                string sAuthType;
                switch (authorization.AuthorizationType)
                {
                default:
                case AuthorizationType.Neutral: sAuthType = Globalization.MultilanguageResource.GetString("Domain_Neutral"); break;

                case AuthorizationType.Allow: sAuthType = Globalization.MultilanguageResource.GetString("Domain_Allow"); break;

                case AuthorizationType.AllowWithDelegation: sAuthType = Globalization.MultilanguageResource.GetString("Domain_AllowWithDelegation"); break;

                case AuthorizationType.Deny: sAuthType = Globalization.MultilanguageResource.GetString("Domain_Deny"); break;
                }
                string     displayName;
                MemberType memberType = authorization.GetMemberInfo(out displayName);
                string     ownerName;
                MemberType ownerType = authorization.GetOwnerInfo(out ownerName);
                resultNode.DisplayName = displayName;
                switch (memberType)
                {
                case MemberType.AnonymousSID: resultNode.ImageIndex = ImageIndexes.SidNotFoundImgIdx; break;

                case MemberType.ApplicationGroup:
                    if (((ItemAuthorizationScopeNode)this.ScopeNode).Item.Application.GetApplicationGroup(authorization.SID).GroupType == GroupType.Basic)
                    {
                        resultNode.ImageIndex = ImageIndexes.ApplicationGroupBasicImgIdx;
                    }
                    else
                    {
                        resultNode.ImageIndex = ImageIndexes.ApplicationGroupLDAPImgIdx;
                    }
                    break;

                case MemberType.StoreGroup:
                    if (((ItemAuthorizationScopeNode)this.ScopeNode).Item.Application.Store.GetStoreGroup(authorization.SID).GroupType == GroupType.Basic)
                    {
                        resultNode.ImageIndex = ImageIndexes.StoreGroupBasicImgIdx;
                    }
                    else
                    {
                        resultNode.ImageIndex = ImageIndexes.StoreGroupLDAPImgIdx;
                    }
                    break;

                case MemberType.WindowsNTGroup: resultNode.ImageIndex = ImageIndexes.WindowsGroupImgIdx; break;

                case MemberType.WindowsNTUser: resultNode.ImageIndex = ImageIndexes.WindowsUserImgIdx; break;

                case MemberType.DatabaseUser: resultNode.ImageIndex = ImageIndexes.DatabaseUserImgIdx; break;
                }
                string sidWDS = String.Empty;
                switch (authorization.SidWhereDefined.ToString())
                {
                case "LDAP": sidWDS = Globalization.MultilanguageResource.GetString("WhereDefined_LDAP"); break;

                case "Local": sidWDS = Globalization.MultilanguageResource.GetString("WhereDefined_Local"); break;

                case "Database": sidWDS = Globalization.MultilanguageResource.GetString("WhereDefined_DB"); break;

                case "Store": sidWDS = Globalization.MultilanguageResource.GetString("WhereDefined_Store"); break;

                case "Application": sidWDS = Globalization.MultilanguageResource.GetString("WhereDefined_Application"); break;
                }
                resultNode.SubItemDisplayNames.AddRange(
                    new string[] {
                    sAuthType,
                    sidWDS,
                    ownerName,
                    (authorization.ValidFrom.HasValue ? authorization.ValidFrom.Value.ToString() : String.Empty),
                    (authorization.ValidTo.HasValue ? authorization.ValidTo.Value.ToString() : String.Empty),
                    authorization.SID.StringValue
                });
                list.Add(resultNode);
            }
            this.ResultNodes.AddRange(list.ToArray());
        }