Example #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);
        }
        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();
            }
        }
Example #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();
            }
        }