private void ldapDNSelected(object o, dnSelectedEventArgs args) { if (args.IsHost) { return; } _dn = args.DN; selectContainerDialog.HideAll(); }
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); } }
private void ldapDNSelected(object o, dnSelectedEventArgs args) { if (args.IsHost) return; _dn = args.DN; selectContainerDialog.HideAll (); }