public CheckForUpdates(Main mainForm, CheckForUpdatesHelper checkForUpdatesHelper) { InitializeComponent(); _mainForm = mainForm; _updatesHelper = checkForUpdatesHelper; InitLanguage(); ShowAvailableUpdate(true); _performCheckOnShown = false; }
public CheckForUpdates(Main mainForm, CheckForUpdatesHelper checkForUpdatesHelper) { UiUtil.PreInitialize(this); InitializeComponent(); UiUtil.FixFonts(this); _mainForm = mainForm; _updatesHelper = checkForUpdatesHelper; InitLanguage(); ShowAvailableUpdate(true); _performCheckOnShown = false; UiUtil.FixLargeFonts(this, buttonOK); }
private void CheckForUpdates_Shown(object sender, EventArgs e) { if (!_performCheckOnShown) { Activate(); return; } _updatesHelper = new CheckForUpdatesHelper(); Application.DoEvents(); Refresh(); _updatesHelper.CheckForUpdates(); timerCheckForUpdates.Start(); buttonOK.Focus(); Activate(); }