예제 #1
0
        private void 检查更新ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            update up = new update();

            http    h    = new http();
            string  bd   = h.HttpGet(@"http://t.vvwall.com/DST/version.php", "");
            JObject json = JObject.Parse(bd);

            if (Int32.Parse(version) < Int32.Parse(json["version"].ToString()))
            {
                up.url      = json["url"].ToString();
                up.timeq    = json["time"].ToString();
                up.des      = json["des"].ToString();
                up.titletxt = json["title"].ToString();
                up.must     = json["must"].ToString();
                up.gg       = json["gg"].ToString();
            }
            if (up.ShowDialog() == DialogResult.OK)
            {
                MessageBox.Show("你必须更新新版本才能使用");
                this.Close();
            }
        }
예제 #2
0
        private void checkup()
        {
            timer1.Enabled = false;
            update  up   = new update();
            http    h    = new http();
            string  bd   = h.HttpGet(@"http://t.vvwall.com/DST/version.php", "");
            JObject json = JObject.Parse(bd);

            if (Int32.Parse(version) < Int32.Parse(json["version"].ToString()))
            {
                up.url      = json["url"].ToString();
                up.timeq    = json["time"].ToString();
                up.des      = json["des"].ToString();
                up.titletxt = json["title"].ToString();
                up.must     = json["must"].ToString();
                up.gg       = json["gg"].ToString();
                if (up.ShowDialog() == DialogResult.OK)
                {
                    MessageBox.Show("你必须更新新版本才能使用");
                    this.Close();
                }
            }
        }
예제 #3
0
        private void 检查更新ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            update up = new update();

               http h = new http();
               string bd = h.HttpGet(@"http://t.vvwall.com/DST/version.php", "");
               JObject json = JObject.Parse(bd);

               if (Int32.Parse(version) < Int32.Parse(json["version"].ToString()))
               {
               up.url = json["url"].ToString();
               up.timeq = json["time"].ToString();
               up.des = json["des"].ToString();
               up.titletxt = json["title"].ToString();
               up.must = json["must"].ToString();
               up.gg = json["gg"].ToString();

               }
               if (up.ShowDialog() == DialogResult.OK) {
               MessageBox.Show("你必须更新新版本才能使用");
               this.Close();
               }
        }
예제 #4
0
 private void checkup()
 {
     timer1.Enabled = false;
     update up = new update();
     http h = new http();
     string bd = h.HttpGet(@"http://t.vvwall.com/DST/version.php", "");
     JObject json = JObject.Parse(bd);
     if (Int32.Parse(version) < Int32.Parse(json["version"].ToString()))
     {
         up.url = json["url"].ToString();
         up.timeq = json["time"].ToString();
         up.des = json["des"].ToString();
         up.titletxt = json["title"].ToString();
         up.must = json["must"].ToString();
         up.gg = json["gg"].ToString();
         if (up.ShowDialog() == DialogResult.OK)
         {
             MessageBox.Show("你必须更新新版本才能使用");
             this.Close();
         }
     }
 }