private void LoadList() { SetListView(); lvwStoreGroups.Items.Clear(); IAzManDBUser[] dbUsers = _Application.GetDBUsers(); foreach (IAzManDBUser dbUser in dbUsers) { /** * if ((_StoreGroup == null) || (_StoreGroup != null && dbUser.SID.StringValue != _StoreGroup.SID.StringValue)) * { * ListViewItem oItem = lvwStoreGroups.Items.Add(dbUser.Name); * oItem.SubItems.Add(dbUser.Description); * oItem.SubItems.Add(dbUser.GroupType == GroupType.Basic ? "Basic Group" : "LDAP Group"); * } */ ListViewItem oItem = lvwStoreGroups.Items.Add(dbUser.UserName); oItem.SubItems.Add(dbUser.CustomSid.ToString()); oItem.SubItems.Add("Database User"); foreach (var customColumn in dbUser.CustomColumns) { if (customColumn.Value != null && customColumn.Value != DBNull.Value) { oItem.SubItems.Add(customColumn.Value.ToString()); } else { oItem.SubItems.Add(String.Empty); } } } lvwStoreGroups.Sort(); }