Пример #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();
        }
Пример #2
0
 protected override void Dispose(bool disposing)
 {
     RegexHelpUI = null;
     Pattern     = null;
     History     = null;
     Util.Dispose(ref components);
     base.Dispose(disposing);
 }
Пример #3
0
        /// <summary>Set up the UI to receive streamed log data</summary>
        private void PrepareForStreamedData(string output_filepath)
        {
            System.Diagnostics.Debug.Assert(output_filepath != null);
            Settings.OutputFilepathHistory = Util.AddToHistoryList(Settings.OutputFilepathHistory, output_filepath, true, Constants.MaxOutputFileHistoryLength);

            EnableTail(true);
            EnableWatch(true);
            EnableAdditive(true);
        }
Пример #4
0
 protected override void Dispose(bool disposing)
 {
     Util.Dispose(ref components);
     base.Dispose(disposing);
 }