예제 #1
0
 void CheckLogin()
 {
     if (!RandCodeCookieHelper.CheckUserLogin(CookieStoreInstance.CurrentCookie))
     {
         Login12306 login = new Login12306();
         login.ShowDialog();
     }
 }
예제 #2
0
        public Login12306()
        {
            HttpProvider = new HttpProvider();
            InitializeComponent();

            if (RandCodeCookieHelper.CheckUserLogin(CookieStoreInstance.CurrentCookie))
            {
                this.Close();
            }
            ShowCode();
        }