private void Login_Click(object sender, RoutedEventArgs e) { Service1Client client = new Service1Client(); client.authenticateUserCompleted += new EventHandler<authenticateUserCompletedEventArgs>(proxy_authenticateUserCompleted); client.authenticateUserAsync(userName.Text, password.Password); }