private void LoginButtonClick(object sender, RoutedEventArgs e)
        {
            var authKey = this.GetAuthToken(this.Username.Text, this.Password.Password);

            if (authKey == string.Empty)
            {
                this.LoginInformation.Text = LoginFailMessage;
                return;
            }

            var view = new MessengerWindow(this.Username.Text, authKey, new DataRequester(), new UIComponentProvider());

            view.Show();

            this.Close();
        }
Ejemplo n.º 2
0
        private void LoginButtonClick(object sender, RoutedEventArgs e)
        {
            var authKey = this.GetAuthToken(this.Username.Text, this.Password.Password);

            if (authKey == string.Empty)
            {
                this.LoginInformation.Text = LoginFailMessage;
                return;
            }

            var view = new MessengerWindow(this.Username.Text, authKey, new DataRequester(), new UIComponentProvider());

            view.Show();

            this.Close();
        }