public UserProperties(string name, ActiveDirectoryHelper.Tables.ADGroupMembersTableRow userProperties) { // // Required for Windows Form Designer support // InitializeComponent(); this.userProperties = userProperties; this.name = name; }
public void InitializeData(string name, ActiveDirectoryHelper.Tables.ADGroupMembersTableRow userProperties) { this.lstProps.Items.Clear(); this.userProperties = userProperties; this.name = name; this.Text = string.Format(this.Text, this.name); if (this.userProperties != null) { foreach (System.Data.DataColumn col in this.userProperties.Table.Columns) { if (col.ColumnName != "ManagerRow" && col.ColumnName != "Rank") { ListViewItem item = new ListViewItem(new string[] { col.ColumnName, this.userProperties[col.ColumnName].ToString() }); lstProps.Items.Add(item); } } } }