Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Cookies cookies = new Cookies
            {
                CookiesStr = GetCookies("http://www.139.sh")
            };

            if (!cookies.Contains("Cookie_token"))
            {
                MessageBox.Show("你似乎还没有登录呢");
                return;
            }
            Program.config.Access_Token = cookies.GetCookie("Cookie_token");
            Program.config.save();
            MessageBox.Show("保存完成");
            //ShellExecute(IntPtr.Zero, "open", "rundll32.exe", " InetCpl.cpl,ClearMyTracksByProcess 255", "", ShowCommands.SW_HIDE);
            webBrowser1.Dispose();
            this.Close();
        }