Example #1
0
        /// <summary>
        /// Checks for updates.
        /// </summary>
        public void CheckForUpdates()
        {
            Logger.Debug("Shows the Update-window.");

            var viewModel = new UpdaterViewModel(this);

            WindowManager.ShowDialog <UpdaterView>(viewModel);
        }
Example #2
0
        /// <summary>
        /// Shows the about window.
        /// </summary>
        public void ShowAboutWindow()
        {
            Logger.Debug("Shows the About-window.");

            var model = new AboutModel(Assembly.GetExecutingAssembly());

            WindowManager.ShowDialog <AboutView>(new AboutViewModel {
                Model = model
            });
        }
Example #3
0
        /// <summary>
        /// Shows the settings window.
        /// </summary>
        public void ShowSettingsWindow()
        {
            Logger.Debug("Shows the Settings-window.");

            var viewModel = new SettingsViewModel();

            viewModel.RequestApplySettings += this.ApplySettings;

            try
            {
                WindowManager.ShowDialog <SettingsView>(viewModel);
            }
            finally
            {
                viewModel.RequestApplySettings -= this.ApplySettings;
            }
        }