Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        public FirstRunView()
        {
            _ViewModel  = new FirstRunViewModel();
            DataContext = _ViewModel;

            InitializeComponent();

            _ViewModel.AccountConfigued += _ViewModel_AccountConfigued;
        }
Ejemplo n.º 3
0
        internal void LoadPasswords()
        {
            if (!_PasswordsLoaded && FirstRunViewModel.WasCompleted())
            {
                _PasswordsLoaded = true;

                Status = "Loading Passwords...";
                _Model.FinishedLoading += Instance_FinishedLoading;
                _Model.LoadPasswords();
            }
        }