Ejemplo n.º 1
0
 public void Initialize()
 {
     _mainViewModel = new MainViewModel();
     _viewModel = new DatabaseLoginViewModel(_mainViewModel);
     SetCorrectConnectionString();
     SettingsHelper.ResetSettings();
 }
Ejemplo n.º 2
0
        private void LoadInitialViewModel()
        {
            var connectionString = SettingsHelper.GetConnectionString();

            if (ConnectionVerifier.IsConnectionValid(connectionString))
            {
                LoadUtilityViewModel(new LoginViewModel(this));
            }
            else
            {
                CurrentUtilityViewModel = new DatabaseLoginViewModel(this);
            }
        }