Exemple #1
0
 private void OnLoginSuccess(object sender, UserEventArgs e)
 {
     _accountInfoUc         = new AccountInfoUc(e.User);
     _accountInfoUc.Logout += OnLogout;
     LoadUserControl(_accountInfoUc);
     SetUserName(e.User.Name);
 }
Exemple #2
0
        private void OnLogout(object sender, EventArgs e)
        {
            SetUserName(string.Empty);
            _accountInfoUc = null;
            var loginUc = CreateLoginUc();

            LoadUserControl(loginUc);
        }