Esempio n. 1
0
        private void runUpdater(string ip)
        {
            if (metroCheckBox1.Checked)
            {
                label1.Text = "Status: Downloading latest client...";
                label1.Update();
                var webCli        = new WebClient();
                var clientVersion = Encoding.UTF8.GetString(webCli.DownloadData("https://realmofthemadgodhrd.appspot.com/version.txt"));
                webCli.DownloadFile($"https://realmofthemadgodhrd.appspot.com/AssembleeGameClient{clientVersion}.swf", "client.swf");
            }

            updater = new ClientUpdater(ip, label1);
            updater.UpdateClient();
        }
Esempio n. 2
0
        private void runUpdater(string ip)
        {
            if (metroCheckBox1.Checked)
            {
                label1.Text = "Status: Downloading latest client...";
                label1.Update();
                var webCli = new WebClient();
                var clientVersion = Encoding.UTF8.GetString(webCli.DownloadData("https://realmofthemadgodhrd.appspot.com/version.txt"));
                webCli.DownloadFile($"https://realmofthemadgodhrd.appspot.com/AssembleeGameClient{clientVersion}.swf", "client.swf");
            }

            updater = new ClientUpdater(ip, label1);
            updater.UpdateClient();
        }
Esempio n. 3
0
        private void runUpdater(string ip)
        {
            if (checkBoxDownloadClient.Checked)
            {
                labelStatus.Text = "Status: Downloading latest client...";
                labelStatus.Update();
                using (var webCli = new WebClient())
                {
                    var clientVersion = Encoding.UTF8.GetString(webCli.DownloadData($"http://www.realmofthemadgod.com/version.txt?time={CurrentMillis.Millis}"));
                    webCli.DownloadFile($"https://realmofthemadgodhrd.appspot.com/AssembleeGameClient{clientVersion}.swf", "client.swf");
                }
                getLanguage("de");
                getLanguage("en");
                getLanguage("es");
                getLanguage("fr");
                getLanguage("it");
                getLanguage("ru");
                getLanguage("tr");
            }

            updater = new ClientUpdater(ip, labelStatus);
            updater.UpdateClient();
        }
Esempio n. 4
0
 private void button1_Click(object sender, EventArgs e)
 {
     updater = new ClientUpdater("71.231.167.96", label1);
     updater.UpdateClient();
 }
Esempio n. 5
0
 private void c453_btn_Click(object sender, EventArgs e)
 {
     updater = new ClientUpdater("25.108.113.162", label1);
     updater.UpdateClient();
 }
Esempio n. 6
0
 private void localhost_btn_Click(object sender, EventArgs e)
 {
     updater = new ClientUpdater("127.0.0.1", label1);
     updater.UpdateClient();
 }
Esempio n. 7
0
 private void runUpdater(string ip)
 {
     updater = new ClientUpdater(ip, label1);
     updater.UpdateClient();
 }