Exemplo n.º 1
0
 public MainViewModel(INavigator navigator, ICryptoMonitorViewModelAbstract viewModelFactory, IAuthenticator authenticator)
 {
     _authenticator                = authenticator;
     _navigator                    = navigator;
     _viewModelFactory             = viewModelFactory;
     _navigator.StateChanged      += _navigator_StateChanged;
     _authenticator.StateChanged  += _authenticator_StateChanged;
     UpdateCurrentViewModelCommand = new UpdateCurrentViewModelCommand(navigator, _viewModelFactory);
     UpdateCurrentViewModelCommand.Execute(ViewType.Login);
 }
 public UpdateCurrentViewModelCommand(INavigator navigator, ICryptoMonitorViewModelAbstract viewModelFactory)
 {
     _navigator        = navigator;
     _viewModelFactory = viewModelFactory;
     dbContextFactory  = new CryptoDbContextFactory();
 }