private void OK_buton(object sender, System.Windows.RoutedEventArgs e) { if (string.IsNullOrEmpty(nam.Text) || string.IsNullOrEmpty(paw.Password)) { MessageBox.Show("用户名或密码不能为空!"); } else { client.GetUserInfoAsync(nam.Text); } }
public void GetUserInfo(string userName) { _client.GetUserInfoAsync(userName); }