void CheckLogin() { if (!RandCodeCookieHelper.CheckUserLogin(CookieStoreInstance.CurrentCookie)) { Login12306 login = new Login12306(); login.ShowDialog(); } }
public Login12306() { HttpProvider = new HttpProvider(); InitializeComponent(); if (RandCodeCookieHelper.CheckUserLogin(CookieStoreInstance.CurrentCookie)) { this.Close(); } ShowCode(); }