public void UserLogin(object loginDialog, UserLoginEventArgs loginArgs)
 {
     Debug.WriteLine("User Logged In: " + loginArgs.ToString());
     this.userIdTextBox.Clear();
     this.userIdTextBox.Text = loginArgs.userId;
     this.ActivateControls(true);
 }
Exemple #2
0
        private void UserLogin(object loginDialog, UserLoginEventArgs loginArgs)
        {
            Debug.WriteLine("User Logged In: " + loginArgs.ToString());
            
            this.userId = loginArgs.userId;
            this.authToken = loginArgs.authToken;
            this.expiresAt = loginArgs.expiersIn; // todo: calc expiration time

            this.userIdTextBox.Clear();
            this.userIdTextBox.Text = "Authorized " + loginArgs.userId;
            this.ActivateControls();
        }