protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            this.CheckInstall();
            this.Settings = SettingsHelper.LoadSettings();
            Locator.Register <ISettings>(this.Settings);

            if (UpdateChecker.CheckForUpdate(false))
            {
                Locator.Get <IDialogService>().ShowDialog(new UpdateWindowViewModel());
                return;
            }

            var vm   = new MainWindowViewModel();
            var view = new MainWindowView {
                DataContext = vm
            };

            this.MainWindow = view;
            vm.ConnectToStartupNetworks();
            this.MainWindow.Show();
        }
Beispiel #2
0
 public void Save()
 {
     SettingsHelper.SaveSettings(this);
 }