Пример #1
0
        private void ldapDNSelected(object o, dnSelectedEventArgs args)
        {
            if (args.IsHost)
            {
                return;
            }

            _dn = args.DN;

            selectContainerDialog.HideAll();
        }
Пример #2
0
        void OnLdapDNSelected(object o, dnSelectedEventArgs args)
        {
            if (args.Server == null)
            {
                return;
            }

            Connection conn = Global.Connections [args.Server];

            if (args.IsHost)
            {
                if (attributeEditor != null)
                {
                    attributeEditor.Destroy();
                }

                serverInfoView = new ServerInfoView(conn);
                valuesScrolledWindow.AddWithViewport(serverInfoView);
                valuesScrolledWindow.ShowAll();

                return;
            }

            if (serverInfoView != null)
            {
                serverInfoView.Destroy();
                serverInfoView = null;

                attributeEditor = new AttributeEditorWidget();
                valuesScrolledWindow.AddWithViewport(attributeEditor);
                valuesScrolledWindow.ShowAll();
            }

            LdapEntry entry = conn.Data.GetEntry(args.DN);

            if (entry != null)
            {
                attributeEditor.Show(conn, entry, showAllAttributes.Active);
            }
        }
Пример #3
0
        private void ldapDNSelected(object o, dnSelectedEventArgs args)
        {
            if (args.IsHost)
                return;

            _dn = args.DN;

            selectContainerDialog.HideAll ();
        }