コード例 #1
0
        public CheckForUpdates(Main mainForm, CheckForUpdatesHelper checkForUpdatesHelper)
        {
            InitializeComponent();

            _mainForm      = mainForm;
            _updatesHelper = checkForUpdatesHelper;
            InitLanguage();
            ShowAvailableUpdate(true);
            _performCheckOnShown = false;
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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();
        }