Esempio n. 1
0
        public ShellViewModel(string[] args)
        {
            Contract.Requires(args != null);

            if (AdvancedSettings.Default.CheckForUpdates)
            {
                CheckForUpdatesAsync();
            }

            var inputPage = new InputPageViewModel();
            inputPage.Completed += HandleInputPageCompleted;

            _currentPage = inputPage;

            _parseArgsTask = ParametersHelper.ParseAsync(args);
        }
Esempio n. 2
0
        private void OnLoaded()
        {
            // Upgrade settings from previous versions
            if (AdvancedSettings.Default.UpgradeRequired)
            {
                Settings.Default.Upgrade();
                AdvancedSettings.Default.Upgrade();

                AdvancedSettings.Default.UpgradeRequired = false;
                AdvancedSettings.Default.Save();
            }

            var inputPage = new InputPageViewModel();
            inputPage.Completed += HandleInputPageCompleted;
            _currentPage = inputPage;

            if (AdvancedSettings.Default.CheckForUpdates)
            {
                CheckForUpdatesAsync();
            }
        }
Esempio n. 3
0
        private void OnLoaded()
        {
            // Upgrade settings from previous versions
            if (AdvancedSettings.Default.UpgradeRequired)
            {
                Settings.Default.Upgrade();
                AdvancedSettings.Default.Upgrade();

                AdvancedSettings.Default.UpgradeRequired = false;
                AdvancedSettings.Default.Save();
            }

            var inputPage = new InputPageViewModel();

            inputPage.Completed += HandleInputPageCompleted;
            _currentPage         = inputPage;

            if (AdvancedSettings.Default.CheckForUpdates)
            {
                CheckForUpdatesAsync();
            }
        }