/// <summary> /// Add and show the login user control. /// </summary> private void AddLoginWuc() { loginW = new wuc.wuc_login(srv, login, domains); loginW.loginSuccessful += new Delegates.EhBool(loginHandler); Controls.Add(loginW); }
/// <summary> /// Hide and dispose of the login user control. /// </summary> private void RemoveLoginWuc() { Controls.Remove(loginW); loginW.Dispose(); loginW = null; }