Ejemplo n.º 1
0
 /// <summary>
 /// 登录失败
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void amtium_LoginFailure(object sender, AmtiumLoginFailureEventArgs e)
 {
     labelStatus.Text = "";
     timer1.Stop();
     buttonLogin.Enabled = true;
     EnableControls();
     MessageBox.Show(e.Message, "登录失败", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
 }
Ejemplo n.º 2
0
 protected virtual void OnLoginFailure(AmtiumLoginFailureEventArgs e)
 {
     if (LoginFailure != null)
     {
         mainThreadContext.Post(new SendOrPostCallback((object sender) =>
         {
             LoginFailure(sender, e);
         }), this);
     }
 }