private void frmModelLogin_Load(object sender, EventArgs e)
        {
            ULCode.TextFile tf = new ULCode.TextFile(Application.StartupPath + "/User.txt");
            string          s  = tf.Text();

            tf = null;
            if (!String.IsNullOrEmpty(s))
            {
                frmWorkDesktop fwd = new frmWorkDesktop();
                fwd.Show();
                this.Close();
            }
        }
 private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
 {
     if (this.webBrowser1.Url.ToString().ToLower() == "http://jnooe.com/Manage/Default.aspx".ToLower())
     {
         this.FetchedCookie = this.webBrowser1.Document.Cookie;
         ULCode.TextFile tf = new ULCode.TextFile(Application.StartupPath + "/User.txt");
         tf.Save(this.FetchedCookie);
         tf = null;
         MessageBox.Show("登录设置成功!");
         frmWorkDesktop fwd = new frmWorkDesktop();
         fwd.Show();
         this.Hide();
     }
 }