Ejemplo n.º 1
0
        //加载
        private void FormLogin_Load(object sender, EventArgs e)
        {
            //登录前Cookie:
            //pgv_pvi=3632438272;
            //Hm_lvt_204fcf6777f8efa834fe7c45a2336bf1=1421482609,1421483194;
            //mp_fbfbacb18f1ac527ede6ca993f5fbb18_mixpanel=%7B%22distinct_id%22%3A%20%2214b8710c26d147-0b66ecf27-464c0021-100200-14b8710c26e11a%22%2C%22%24initial_referrer%22%3A%20%22%24direct%22%2C%22%24initial_referring_domain%22%3A%20%22%24direct%22%7D;
            //PORTAL_SESSION=MTdKVkNXRzVTVVc3R1hZUFBBTVNEQlgwMU5NQ1pYN1IsMTQyNDE2NjY0ODIxNTI5MDc3MyxjNDc1NDMzNDljZTgwMTFkZDRhOGQ0MDNkZjMyNTkxMGM1YTkxMjRh;
            //_ga=GA1.2.1889280735.1414002006;
            //pgv_si=s1256732672;
            //PORTAL_FLASH=

            //登录后Cookie:
            //pgv_pvi=3632438272;
            //Hm_lvt_204fcf6777f8efa834fe7c45a2336bf1=1421482609,1421483194;
            //mp_fbfbacb18f1ac527ede6ca993f5fbb18_mixpanel=%7B%22distinct_id%22%3A%20%2214b8710c26d147-0b66ecf27-464c0021-100200-14b8710c26e11a%22%2C%22%24initial_referrer%22%3A%20%22%24direct%22%2C%22%24initial_referring_domain%22%3A%20%22%24direct%22%7D;
            //PORTAL_SESSION=MTdKVkNXRzVTVVc3R1hZUFBBTVNEQlgwMU5NQ1pYN1IsMTQyNDE2NjY0ODIxNTI5MDc3MyxjNDc1NDMzNDljZTgwMTFkZDRhOGQ0MDNkZjMyNTkxMGM1YTkxMjRh;
            //pgv_si=s1256732672;
            //_ga=GA1.2.1889280735.1414002006;
            //_utm_uidn=true;
            //PORTAL_FLASH=%00username%3A178910432%40qq.com%00
            this.Opacity = 0.01;
            My.ResetWebbrowser();
            webBrowser1.Navigate("http://portal.qiniu.com/signin");
            timer1.Enabled = true;
        }
Ejemplo n.º 2
0
 //关闭窗体
 public void FormLogin_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (My.Logined < 2)
     {
         e.Cancel           = true;
         this.Opacity       = 0.01;
         this.ShowInTaskbar = false;
         My.ResetWebbrowser();
         webBrowser1.Navigate("http://portal.qiniu.com/signin");
         timer1.Enabled = true;
         //My.Show("FormLogin_FormClosing");
     }
     else
     {
         e.Cancel           = true;
         this.Opacity       = 0;
         this.ShowInTaskbar = false;
     }
 }
Ejemplo n.º 3
0
 //更多功能
 private void button3_Click(object sender, EventArgs e)
 {
     System.Windows.Forms.DialogResult Temp = MessageBox.Show(
         "选是,将打开软件官网获取新版功能,选否,将打开网页版进行网页操作。",
         "是否打开官网以获取更多功能?",
         MessageBoxButtons.YesNoCancel,
         MessageBoxIcon.Information,
         MessageBoxDefaultButton.Button1
         );
     if (Temp == System.Windows.Forms.DialogResult.Yes)
     {
         System.Diagnostics.Process.Start("EXPLORER.EXE", "http://www.moonlord.cn/blog/");
     }
     else if (Temp == System.Windows.Forms.DialogResult.No)
     {
         //My.LoginForm.FormLogin_FormClosing(sender, new FormClosingEventArgs(new CloseReason(), false));
         My.ResetWebbrowser();
         My.LoginForm.Text = "七牛云存储";
         My.LoginForm.webBrowser1.Navigate("http://portal.qiniu.com/signin");
         My.LoginForm.timer1.Enabled = true;
     }
 }