Example #1
0
 public override void DoSelect()
 {
     if (PropertiesCtl == null)
     {
         VMDirEnvironment.Instance.Logger.Log("PropertiesCtl is null", LogLevel.Error);
     }
     PropertiesCtl.SetEditState(false);
     DoExpand();
 }
Example #2
0
        public override void DoSelect()
        {
            PropertiesCtl.Visible = true;
            var oc = string.Empty;

            if (ObjectClass.Count > 0)
            {
                oc = ObjectClass[ObjectClass.Count - 1];
            }
            PropertiesCtl.Init(Dn, oc, ServerDTO, NodeProperties);
        }
Example #3
0
 public override void DoSelect()
 {
     if (ServerDTO.IsLoggedIn)
     {
         PropertiesCtl.Init(VMDirConstants.ATTR_VMW_DSEROOT_DN, string.Empty, ServerDTO, ServerProperties);
     }
     else
     {
         PropertiesCtl.ClearView();
         PropertiesCtl.SetEditState(false);
     }
 }
Example #4
0
 public void Logout()
 {
     try
     {
         ServerDTO.Connection = new LdapConnectionService(ServerDTO.Server, ServerDTO.BindDN, ServerDTO.Password);
         ServerDTO.Connection.CloseConnection();
         ServerDTO.Connection = null;
         ServerDTO.IsLoggedIn = false;
         Nodes.Clear();
         PropertiesCtl.ClearView();
     }
     catch (Exception exp)
     {
         MiscUtilsService.ShowError(exp);
     }
 }