void client_LoginCheckCompleted(object sender, LoginCheckCompletedEventArgs e) { if (e.Error != null) { MessageBox.Show(e.Error.Message); tbmsg.Text = "系统错误,请联系管理员"; } if (e.Result) { LayoutRoot.Visibility = Visibility.Collapsed; HandlerClicked(); } else { tbmsg.Text = Utility.GetResourceStr("PASSWORDERROR"); } }
void client_LoginCheckCompleted(object sender, LoginCheckCompletedEventArgs e) { try { if (e.Result) { LayoutRoot.Visibility = Visibility.Collapsed; HandlerClicked(); } else { tbmsg.Text = Utility.GetResourceStr("PASSWORDERROR"); } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } finally { tbmsg.Text = string.Empty; } }