Esempio n. 1
0
        /// <summary>
        /// Handles the Load event of the MainGUI control.
        /// Executed when the form is loaded
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void MainGUI_Load(object sender, EventArgs e)
        {
            //load data from settings file
            LoadSettings();

            // check that all the relevant controls for checkboxes are switched on/off
            // depending on the original checkbox state
            hoursCheckbox_CheckedChanged(null, null);
            kilobytesCheckbox_CheckedChanged(null, null);
            resolutionCheckbox_CheckedChanged(null, null);

            //Populate Profile dropdown
            BrowserDropDown.DataSource    = Profiles;
            BrowserDropDown.DisplayMember = "Name";
            BrowserDropDown.ValueMember   = "FullPath";

            // make sure the controls are in the proper state
            ResetControls();

            // make sure the pattern is displayed on load
            DisplaySamplePattern();

            // Sort text on tooltips
            SetTooltips();

            // get text sorted on About tab
            PopulateAboutLabels();

            // if we have set the updater, do check for updates
            if (_updater != null)
            {
                _updater.CheckUpdates();
            }
        }
Esempio n. 2
0
 private void CheckMethod(object obj)
 {
     // invoke this method to check for updates
     _updater.CheckUpdates();
 }
Esempio n. 3
0
 private void CheckForUpdates()
 {
     _updater = _locator.Resolve <IUpdater>();
     _updater.CheckUpdates();
 }
Esempio n. 4
0
 private void CheckForUpdates()
 {
     _updater = _locator.Resolve<IUpdater>();
         _updater.CheckUpdates();
 }