Example #1
0
        private void MainForm_Shown(object sender, EventArgs e)
        {
            WindowsUtils.RegisterApplicationRestart(_machineWide ? "--restart --machine" : "--restart");

            UpdateAppListAsync();
            _tileManagement.LoadCachedCatalog();
            LoadCatalogAsync();

            bool firstRun = OnFirstRun();

            if (_tileManagement.AppList.Entries.Count == 0)
            {
                if (firstRun)
                {
                    using var dialog = new IntroDialog();
                    dialog.ShowDialog(this);
                }

                // Show catalog automatically if AppList is empty
                tabControlApps.SelectTab(tabPageCatalog);
            }

            if (ZeroInstallInstance.IsRunningFromCache)
            {
                if (ZeroInstallInstance.FindOther() == null)
                {
                    deployTimer.Enabled = true;
                }
            }
            else
            {
                selfUpdateWorker.RunWorkerAsync();
            }
        }
Example #2
0
        private void MainForm_Shown(object sender, EventArgs e)
        {
            WindowsUtils.RegisterApplicationRestart(_machineWide ? "--restart --machine" : "--restart");

            UpdateAppListAsync();
            _tileManagement.LoadCachedCatalog();
            LoadCatalogAsync();

            bool firstRun = CentralUtils.OnFirstRun();

            if (_tileManagement.AppList.Entries.Count == 0)
            {
                if (firstRun)
                {
                    using (var dialog = new IntroDialog()) dialog.ShowDialog(this);
                }

                // Show catalog automatically if AppList is empty
                tabControlApps.SelectTab(tabPageCatalog);
            }

            if (!SelfUpdateUtils.NoAutoCheck && !SelfUpdateUtils.IsBlocked)
            {
                selfUpdateWorker.RunWorkerAsync();
            }
        }
Example #3
0
        private void MainForm_Shown(object sender, EventArgs e)
        {
            WindowsUtils.RegisterApplicationRestart(_machineWide ? "--restart --machine" : "--restart");

            UpdateAppListAsync();
            _tileManagement.LoadCachedCatalog();
            LoadCatalogAsync();

            bool firstRun = OnFirstRun();
            if (_tileManagement.AppList.Entries.Count == 0)
            {
                if (firstRun) using (var dialog = new IntroDialog()) dialog.ShowDialog(this);

                // Show catalog automatically if AppList is empty
                tabControlApps.SelectTab(tabPageCatalog);
            }

            if (!SelfUpdateUtils.NoAutoCheck && !SelfUpdateUtils.IsBlocked) selfUpdateWorker.RunWorkerAsync();
        }
Example #4
0
        private void MainForm_Shown(object sender, EventArgs e)
        {
            WindowsUtils.RegisterApplicationRestart(_machineWide ? "--restart --machine" : "--restart");

            UpdateAppListAsync();
            _tileManagement.LoadCachedCatalog();
            LoadCatalogAsync();

            bool firstRun = OnFirstRun();
            if (_tileManagement.AppList.Entries.Count == 0)
            {
                if (firstRun) using (var dialog = new IntroDialog()) dialog.ShowDialog(this);

                // Show catalog automatically if AppList is empty
                tabControlApps.SelectTab(tabPageCatalog);
            }

            if (ProgramUtils.IsRunningFromCache && ProgramUtils.FindOtherInstance() == null)
                deployTimer.Enabled = true;
            else if (!SelfUpdateUtils.NoAutoCheck)
                selfUpdateWorker.RunWorkerAsync();
        }