Пример #1
0
        public AboutUI(StartupOptions startup_options)
        {
            InitializeComponent();

            m_licence      = new Licence(startup_options.LicenceFilepath);
            m_installed_on = InstalledOn(startup_options);
            m_timer        = new Timer {
                Interval = 1000
            };

            // Version info
            m_edit_version.Text = string.Format(
                "{0} {1}" +
                "Version: {2}" +
                "Built: {3}" +
                "All Rights Reserved"
                , Util.GetAssemblyAttribute <AssemblyCompanyAttribute>().Company
                , Util.GetAssemblyAttribute <AssemblyCopyrightAttribute>().Copyright + Environment.NewLine
                , Util.AssemblyVersion() + Environment.NewLine
                , Util.AssemblyTimestamp() + Environment.NewLine
                );
            m_edit_version.Select(0, 0);

            // Version history
            m_btn_version_history.Click += (s, a) =>
            {
                HelpUI.ShowDialog(this, HelpUI.EContent.Html, "Version History", Resources.version_history);
            };

            // Update the text fields
            m_timer.Tick   += (s, a) => UpdateUI();
            m_timer.Enabled = true;

            UpdateUI();
        }