public MainViewModel(INavigator navigator, IHumidityViewModelFactory viewModelFactory) { Navigator = navigator; UpdateCurrentViewModelCommand = new UpdateCurrentViewModelCommand(navigator, viewModelFactory); UpdateCurrentViewModelCommand.Execute(ViewType.Home); }
public UpdateCurrentViewModelCommand(INavigator navigator, IHumidityViewModelFactory viewModelFactory) { _navigator = navigator; _viewModelFactory = viewModelFactory; }