void ShowAttributes() { attrListStore.Clear(); string[] required, optional; conn.Data.GetAllAttributes(_objectClass, out required, out optional); foreach (string s in required) { if (_isEdit) { attrListStore.AppendValues(s, "Required", t.GetAttributeDefaultValue(s)); } else { attrListStore.AppendValues(s, "Required", ""); } } foreach (string s in optional) { if (_isEdit) { attrListStore.AppendValues(s, "Optional", t.GetAttributeDefaultValue(s)); } else { attrListStore.AppendValues(s, "Optional", ""); } } }
void insertValues(string[] values, string valueType) { foreach (string s in values) { if (s == "objectClass") { continue; } if (isTemplate) { attrListStore.AppendValues(s, t.GetAttributeDefaultValue(s), valueType); } else { attrListStore.AppendValues(s, "", valueType); } } }