Exemple #1
0
        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, "");
                    }
                }
            }
        }
Exemple #2
0
        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();
        }
Exemple #3
0
        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 ();
        }
Exemple #4
0
        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, "");
                    }
                }
            }
        }