/// <summary>
        /// Initializes a new instance of the <see cref="WindowsFormsAboutServiceForm"/> class.
        /// </summary>
        /// <param name="service">The service.</param>
        public WindowsFormsAboutServiceForm(WindowsFormsAboutService service)
        {
            InitializeComponent();

            if (service == null) service = new WindowsFormsAboutService();
            aboutService = service;

            Text = string.Format(SR.AboutNameVersion, AssemblyTitle, AssemblyVersion);
            labelApplication.Text = AssemblyTitle;
            labelProductName.Text = AssemblyProduct;
            labelVersion.Text = string.Format(SR.VersionWithValue, AssemblyVersion);
            if (IsDebugBuild)
                labelVersion.Text += " (DEBUG Build)";
            labelCopyright.Text = AssemblyCopyright;
            labelCompanyName.Text = AssemblyCompany;
            textBoxDescription.Text = AssemblyDescription;
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="WindowsFormsAboutServiceForm"/> class.
        /// </summary>
        /// <param name="service">The service.</param>
        public WindowsFormsAboutServiceForm(WindowsFormsAboutService service)
        {
            InitializeComponent();

            if (service == null)
            {
                service = new WindowsFormsAboutService();
            }
            aboutService = service;

            Text = string.Format(SR.AboutNameVersion, AssemblyTitle, AssemblyVersion);
            labelApplication.Text = AssemblyTitle;
            labelProductName.Text = AssemblyProduct;
            labelVersion.Text     = string.Format(SR.VersionWithValue, AssemblyVersion);
            if (IsDebugBuild)
            {
                labelVersion.Text += " (DEBUG Build)";
            }
            labelCopyright.Text     = AssemblyCopyright;
            labelCompanyName.Text   = AssemblyCompany;
            textBoxDescription.Text = AssemblyDescription;
        }