private void OnApplicationStartup() { IpfsApiWrapper.StartDaemon(); SetupBootstrapServers(); RestServer a = new RestServer(); a.Start(); AutoUpdater.Launch(); MainWindow mainWindow = new MainWindow(); if (!FirstRunViewModel.WasCompleted()) { FirstRunView dialog = new FirstRunView(); if (dialog.ShowDialog() != true) { mainWindow = null; Shutdown(); } } mainWindow?.Show(); }
public FirstRunView() { _ViewModel = new FirstRunViewModel(); DataContext = _ViewModel; InitializeComponent(); _ViewModel.AccountConfigued += _ViewModel_AccountConfigued; }
internal void LoadPasswords() { if (!_PasswordsLoaded && FirstRunViewModel.WasCompleted()) { _PasswordsLoaded = true; Status = "Loading Passwords..."; _Model.FinishedLoading += Instance_FinishedLoading; _Model.LoadPasswords(); } }