Example #1
0
 private void Form2_Load(object sender, EventArgs e)
 {
     HostChange h = new HostChange();
     showlable.Text = " Version : 1.2.0 \n Data File Version : 2" +
         "\n Beijing Update Time: " + h.maincore.data.SmartHost_Beijing[0].Substring(8) +
         "\n US Update Time: " + h.maincore.data.SmartHost_US[0].Substring(8) +
         "\n Imouto Update Time: " + h.maincore.data.imouto_host[5].Substring(18) +
         "\n 9host Update Time: " + h.maincore.data.ninehost[0].Substring(8);
 }
Example #2
0
        private void Form2_Load(object sender, EventArgs e)
        {
            HostChange h = new HostChange();

            showlable.Text = " Version : 1.2.0 \n Data File Version : 2" +
                             "\n Beijing Update Time: " + h.maincore.data.SmartHost_Beijing[0].Substring(8) +
                             "\n US Update Time: " + h.maincore.data.SmartHost_US[0].Substring(8) +
                             "\n Imouto Update Time: " + h.maincore.data.imouto_host[5].Substring(18) +
                             "\n 9host Update Time: " + h.maincore.data.ninehost[0].Substring(8);
        }
Example #3
0
 private void settings_Load(object sender, EventArgs e)
 {
     HostChange h = new HostChange();
     custom_enable.Checked = h.maincore.data.custom_enable;
     custom_URL_input.Text = h.maincore.data.custom_URL;
     SmartHost_Beijing_URL_input.Text = h.maincore.data.SmartHost_Beijing_URL;
     SmartHost_US_URL_input.Text = h.maincore.data.SmartHost_US_URL;
     imoutohost_URL_input.Text = h.maincore.data.imouto_host_URL;
     ninehost_URL_input.Text = h.maincore.data.ninehost_URL;
 }
Example #4
0
        private void settings_Load(object sender, EventArgs e)
        {
            HostChange h = new HostChange();

            custom_enable.Checked            = h.maincore.data.custom_enable;
            custom_URL_input.Text            = h.maincore.data.custom_URL;
            SmartHost_Beijing_URL_input.Text = h.maincore.data.SmartHost_Beijing_URL;
            SmartHost_US_URL_input.Text      = h.maincore.data.SmartHost_US_URL;
            imoutohost_URL_input.Text        = h.maincore.data.imouto_host_URL;
            ninehost_URL_input.Text          = h.maincore.data.ninehost_URL;
        }
Example #5
0
 private void CheckUpdate_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     try
     {
         HostChange h = new HostChange();
         WebClient GetHost = new WebClient();
         Byte[] pageData = GetHost.DownloadData(h.maincore.data.hostchange_version_URL);
         string a = Encoding.Default.GetString(pageData);
         string b = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
         if (!(a.Equals(b) || a.Equals("")))
         {
             Update up = new Update(a);
             up.Show();
         }
         else
         {
             CheckUpdate.Text = "Up To Date! ლ(╹◡→ლ)";
         }
     }
     catch (WebException) { MessageBox.Show("Check Update Failed.Please Check your Network Or go to https://github.com/Catofes/HostChange for help"); }
 }
Example #6
0
 private void CheckUpdate_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     try
     {
         HostChange h        = new HostChange();
         WebClient  GetHost  = new WebClient();
         Byte[]     pageData = GetHost.DownloadData(h.maincore.data.hostchange_version_URL);
         string     a        = Encoding.Default.GetString(pageData);
         string     b        = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
         if (!(a.Equals(b) || a.Equals("")))
         {
             Update up = new Update(a);
             up.Show();
         }
         else
         {
             CheckUpdate.Text = "Up To Date! ლ(╹◡→ლ)";
         }
     }
     catch (WebException) { MessageBox.Show("Check Update Failed.Please Check your Network Or go to https://github.com/Catofes/HostChange for help"); }
 }