/// <summary> /// Handles the Click event of the btnLogin control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param> private void btnLogin_Click(object sender, RoutedEventArgs e) { HideMessage(); LoginDto loginDto = new LoginDto(); loginDto.Username = txtUsername.Text; loginDto.Password = txtPassword.Password; DoLogin(this, loginDto); }
/// <summary> /// Performs the login. /// </summary> /// <param name="sender">The sender.</param> /// <param name="loginDto">The login dto.</param> protected void LoginView_DoLogin(object sender, LoginDto loginDto) { SendNotification(Notifications.LOGIN, loginDto); }