Example #1
0
        private void ldapDNSelected(object o, dnSelectedEventArgs args)
        {
            if (args.IsHost)
            {
                return;
            }

            _dn = args.DN;

            selectContainerDialog.HideAll();
        }
Example #2
0
File: Window.cs Project: MrJoe/lat
        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);
            }
        }
Example #3
0
        private void ldapDNSelected(object o, dnSelectedEventArgs args)
        {
            if (args.IsHost)
                return;

            _dn = args.DN;

            selectContainerDialog.HideAll ();
        }