Example #1
0
 private void LocalizePage()
 {
     this.SetBrowserLanguage();
     this.Page.Title = this.LocalizeString("Title");
     if (Globals.FormatVersion(this.ApplicationVersion) == Globals.FormatVersion(this.CurrentVersion))
     {
         this.versionLabel.Visible        = false;
         this.currentVersionLabel.Visible = false;
         this.versionsMatch.Text          = this.LocalizeString("VersionsMatch");
         if (Globals.IncrementalVersionExists(this.CurrentVersion))
         {
             this.versionsMatch.Text = this.LocalizeString("VersionsMatchButIncrementalExists");
         }
     }
     else
     {
         this.versionLabel.Text        = string.Format(this.LocalizeString("Version"), Globals.FormatVersion(this.ApplicationVersion));
         this.currentVersionLabel.Text = string.Format(this.LocalizeString("CurrentVersion"), Globals.FormatVersion(this.CurrentVersion));
     }
 }
 private void LocalizePage()
 {
     SetBrowserLanguage();
     Page.Title = LocalizeString("Title");
     if (Globals.FormatVersion(ApplicationVersion) == Globals.FormatVersion(CurrentVersion))
     {
         versionLabel.Visible        = false;
         currentVersionLabel.Visible = false;
         versionsMatch.Text          = LocalizeString("VersionsMatch");
         if (Globals.IncrementalVersionExists(CurrentVersion))
         {
             versionsMatch.Text = LocalizeString("VersionsMatchButIncrementalExists");
         }
     }
     else
     {
         versionLabel.Text        = string.Format(LocalizeString("Version"), Globals.FormatVersion(ApplicationVersion));
         currentVersionLabel.Text = string.Format(LocalizeString("CurrentVersion"), Globals.FormatVersion(CurrentVersion));
     }
 }