Ejemplo n.º 1
0
        public MCourseViewModel(ICoursesViewModelFactory coursesViewModelFactory)
        {
            _viewModelFactory = coursesViewModelFactory;

            _navigator = new Navigator();

            _navigator.StateChanged += Navigator_StateChanged;

            UpdateCurrentViewModelCommand = new UpdateCourseViewModelCommand(_navigator, _viewModelFactory);
            UpdateCurrentViewModelCommand.Execute(CViewType.Courses);
        }
 public UpdateCourseViewModelCommand(INavigator navigator, ICoursesViewModelFactory viewModelFactory)
 {
     _navigator        = navigator;
     _viewModelFactory = viewModelFactory;
 }