void OnAddObjectClassActivate(object o, EventArgs args) { AddObjectClassDialog dlg = new AddObjectClassDialog(conn); foreach (string s in dlg.ObjectClasses) { string[] req = conn.Data.GetRequiredAttrs(s); store.AppendValues("objectClass", s); if (req == null) { continue; } foreach (string r in req) { if (allAttrs.Contains(r)) { allAttrs.Remove(r); } string m = currentAttributes[r]; if (m == null) { store.AppendValues(r, ""); currentAttributes.Add(r, ""); } } } }
public void OnObjAddClicked(object o, EventArgs args) { AddObjectClassDialog dlg = new AddObjectClassDialog(conn); foreach (string s in dlg.ObjectClasses) { if (_objectClass.Contains(s)) { continue; } _objectClass.Add(s); objListStore.AppendValues(s); } ShowAttributes(); }
public void OnObjAddClicked(object o, EventArgs args) { AddObjectClassDialog dlg = new AddObjectClassDialog (conn); foreach (string s in dlg.ObjectClasses) { if (_objectClass.Contains (s)) continue; _objectClass.Add (s); objListStore.AppendValues (s); } ShowAttributes (); }
void OnAddObjectClassActivate(object o, EventArgs args) { AddObjectClassDialog dlg = new AddObjectClassDialog (conn); foreach (string s in dlg.ObjectClasses) { string[] req = conn.Data.GetRequiredAttrs (s); store.AppendValues ("objectClass", s); if (req == null) continue; foreach (string r in req) { if (allAttrs.Contains (r)) allAttrs.Remove (r); string m = currentAttributes[r]; if (m == null) { store.AppendValues (r, ""); currentAttributes.Add (r, ""); } } } }