Exemplo n.º 1
0
        public MainViewModel(INavigator navigator, IShopViewModelFactory viewModelFactory)
        {
            _navigator = navigator;
            _navigator.StateChanged += () => { OnPropertyChanged(nameof(CurrentViewModel)); };

            UpdateCurrentViewModelCommand = new UpdateCurrentViewModelCommand(navigator, viewModelFactory);
            UpdateCurrentViewModelCommand.Execute(ViewModelType.Employee);
        }
Exemplo n.º 2
0
 public UpdateCurrentViewModelCommand(INavigator navigator, IShopViewModelFactory viewModelFactory)
 {
     _navigator        = navigator;
     _viewModelFactory = viewModelFactory;
 }