コード例 #1
0
        public MainViewModel(INavigator navigator, IHumidityViewModelFactory viewModelFactory)
        {
            Navigator = navigator;

            UpdateCurrentViewModelCommand = new UpdateCurrentViewModelCommand(navigator, viewModelFactory);

            UpdateCurrentViewModelCommand.Execute(ViewType.Home);
        }
コード例 #2
0
 public UpdateCurrentViewModelCommand(INavigator navigator, IHumidityViewModelFactory viewModelFactory)
 {
     _navigator        = navigator;
     _viewModelFactory = viewModelFactory;
 }