/// <summary>
        /// 登录成功
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void amtium_LoginSuccess(object sender, AmtiumLoginSuccessEventArgs e)
        {
            labelStatus.Text = "";
            timer1.Stop();
            buttonLogin.Enabled = true;
            buttonLogin.Visible = false;
            buttonLogout.Visible = true;
            HideForm();

            notifyIcon1.Text = "当前账号: " + textBoxUser.Text;
            notifyIcon1.ShowBalloonTip(1000, "登录成功", e.Message, ToolTipIcon.Info);

            if (e.Website.Length > 0)
            {
                this.m_website = e.Website;
                toolStripMenuItemWebsite.Enabled = true;
            }
            else
            {
                this.m_website = null;
                toolStripMenuItemWebsite.Enabled = false;
            }
        }
 protected virtual void OnLoginSuccess(AmtiumLoginSuccessEventArgs e)
 {
     if (LoginSuccess != null)
     {
         mainThreadContext.Post(new SendOrPostCallback((object sender) =>
         {
             LoginSuccess(sender, e);
         }), this);
     }
 }