Exemplo n.º 1
0
 private void PleaseWait_Load(object sender, EventArgs e)
 {
     if (startY != -1 && startX != -1)
     {
         this.Location = new System.Drawing.Point(startX + 10, startY);
     }
     label1.Text = Translations.getTranslatedString(label1.Name);
     Settings.setUIColor(this);
 }
Exemplo n.º 2
0
        //handler for before the window is displayed
        private void VersionInfo_Load(object sender, EventArgs e)
        {
            updateAcceptButton.Text       = Translations.getTranslatedString(updateAcceptButton.Name);
            updateDeclineButton.Text      = Translations.getTranslatedString(updateDeclineButton.Name);
            newVersionAvailableLabel.Text = Translations.getTranslatedString(newVersionAvailableLabel.Name);
            updateQuestionLabel.Text      = Translations.getTranslatedString(updateQuestionLabel.Name);
            problemsUpdatingLabel.Text    = Translations.getTranslatedString(problemsUpdatingLabel.Name);
            clickHereUpdateLabel.Text     = Translations.getTranslatedString(clickHereUpdateLabel.Name);
            //download the latest release notes
            Application.DoEvents();
            WebClient wc = new WebClient();

            downloadedVersionInfo.Text = wc.DownloadString("http://wotmods.relhaxmodpack.com/RelhaxModpack/releaseNotes.txt");
            Settings.setUIColor(this);
            Application.DoEvents();
        }
Exemplo n.º 3
0
 //applies translations
 private void applyTranslations()
 {
     nextPicButton.Text     = Translations.getTranslatedString(nextPicButton.Name);
     previousPicButton.Text = Translations.getTranslatedString(previousPicButton.Name);
     devLinkLabel.Text      = Translations.getTranslatedString(devLinkLabel.Name);
 }