private void btnLogin_Click(object sender, RoutedEventArgs e) { RaiseBeginLoginEvent(txtUsername.Text, txtPassword.Password); }