public AboutDialog() { // // Required for Windows Form Designer support // InitializeComponent(); this.richCreditsBox.BackColor = SystemColors.Window; string textFormat = PdnResources.GetString("AboutDialog.Text.Format"); this.Text = string.Format(textFormat, PdnInfo.GetBareProductName()); this.pdnBanner.BannerText = string.Empty;// PdnInfo.GetFriendlyVersionString(); this.richCreditsBox.LoadFile(PdnResources.GetResourceStream("Files.AboutCredits.rtf"), RichTextBoxStreamType.RichText); this.copyrightLabel.Text = PdnInfo.GetCopyrightString(); this.Icon = PdnInfo.AppIcon; this.okButton.Text = PdnResources.GetString("Form.OkButton.Text"); this.okButton.Location = new Point((this.ClientSize.Width - this.okButton.Width) / 2, this.okButton.Top); this.creditsLabel.Text = PdnResources.GetString("AboutDialog.CreditsLabel.Text"); Font bannerFont = this.pdnBanner.BannerFont; Font newBannerFont = Utility.CreateFont(bannerFont.Name, 8.0f, bannerFont.Style); this.pdnBanner.BannerFont = newBannerFont; newBannerFont.Dispose(); bannerFont.Dispose(); this.versionLabel.Text = PdnInfo.GetFullAppName(); }
public SplashForm() { //SuspendLayout(); // // Required for Windows Form Designer support // InitializeComponent(); // Fill in the status label banner.BannerText = PdnResources.GetString("SplashForm.StatusLabel.Text"); // Fill in the copyright label copyrightLabel.Text = PdnInfo.GetCopyrightString(); }