Ejemplo n.º 1
0
 /// <summary>
 /// 登录淘宝
 /// </summary>
 public void LoginTaoBao()
 {
     if (this.InvokeRequired)
     {
         this.Invoke(new Action(LoginTaoBao), new object[] { });
     }
     else
     {
         lw = new TBSync.LoginWindow();
         lw.LoginSuccessHandle += Lw_LoginSuccessHandle;
         lw.CloseWindowHandle  += Lw_CloseWindowHandle;
         lw.StartPosition       = FormStartPosition.CenterScreen;
         lw.ShowDialog(this);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 登录淘宝
 /// </summary>
 public void LoginTaoBao()
 {
     if (this.InvokeRequired)
     {
         this.Invoke(new Action(LoginTaoBao), new object[] { });
     }
     else
     {
         TimingRefreshAlimamaPage();
         if (lw != null)
         {
             lw.Dispose();
             lw.Close();
             lw = null;
         }
         lw = new TBSync.LoginWindow();
         lw.LoginSuccessHandle += Lw_LoginSuccessHandle;
         lw.CloseWindowHandle  += Lw_CloseWindowHandle;
         lw.StartPosition       = FormStartPosition.CenterScreen;
         lw.ShowDialog(this);
     }
 }