コード例 #1
0
ファイル: AboutBox.cs プロジェクト: sntcz/SnT.IO.Ports
 public AboutBox()
 {
     InitializeComponent();
     this.Text = String.Format("About {0}", AssemblyTitle);
     this.labelProductName.Text   = AssemblyProduct;
     this.labelVersion.Text       = String.Format("Version {0} {1}", AssemblyVersion, AssemblyConfiguration);
     this.labelCopyright.Text     = AssemblyCopyright.Replace("&", "&&");
     this.labelCompanyName.Text   = AssemblyCompany.Replace("&", "&&");
     this.textBoxDescription.Text = Properties.Resources.Description; //AssemblyDescription;
 }
コード例 #2
0
ファイル: About.cs プロジェクト: ewin66/CodeGenerator-2
        public About()
        {
            InitializeComponent();
            var currentYear = DateTime.Now.Year.ToString();

            this.Text += AssemblyTitle;
            this.labelProductName.Text += AssemblyProduct;
            this.labelVersion.Text     += VersionNumber;
            this.labelCopyright.Text   += AssemblyCopyright.Contains(currentYear) ? AssemblyCopyright : AssemblyCopyright + " - " + currentYear;
            this.labelCompanyName.Text += AssemblyCompany;
        }
コード例 #3
0
 public SplashScreen()
 {
     InitializeComponent();
     lblTitle.Text     = AssemblyTitle + " " + AssemblyVersion;
     lblVersion.Text   = "Version " + AssemblyVersion.ToString();
     lblCopyright.Text = AssemblyCopyright.Replace("\r\n", " ");
     lblLicense.Text   = String.Format(
         "{0} comes with ABSOLUTELY NO WARRANTY; for details click \"Help->License\". This is free software and you are welcome to redistribute it under certain conditions. Click \"Help->License\" for details",
         AssemblyTitle
         );
 }
コード例 #4
0
 public AboutBox()
 {
     InitializeComponent();
     Text = String.Format("About {0}", AssemblyTitle);
     labelProductName.Text = AssemblyProduct;
     labelVersion.Text     = String.Format("Version {0}\nAssembly Version:\n {1}", Application.ProductVersion,
                                           AssemblyVersion);
     labelCopyright.Text    = AssemblyCopyright.Replace("2011", DateTime.Now.Year.ToString());
     labelCopyright.Visible = true;
     labelCompanyName.Text  = AssemblyCompany;
     rtbInfo.Text           = Config.ProxyHeroCloudSetting.About;
 }