コード例 #1
0
        public BacktestLauncherViewModel(IViewModelService viewModelService)
        {
            _viewModelService = viewModelService;

            ActivateItem(_viewModelService.GetScreenForNavigationEvent(new LinkedNavigationEvent {
                Destination = NavigationDestination.ResponseSelection
            }));
            ActivateItem(_viewModelService.GetScreenForNavigationEvent(new LinkedNavigationEvent {
                Destination = NavigationDestination.ParametricRange
            }));
            ActivateItem(_viewModelService.GetScreenForNavigationEvent(new LinkedNavigationEvent {
                Destination = NavigationDestination.TemporalRange
            }));

            CurrentScreenIndex = 0;
            ActivateItem(Items[_currentScreenIndex]);
        }
コード例 #2
0
        void LoadView(LinkedNavigationEvent linkedNavigationEvent)
        {
            linkedNavigationEvent.Destination = Destination;
            var _viewModel = _viewModelService.GetScreenForNavigationEvent(linkedNavigationEvent);

            _viewModel.Initialize(linkedNavigationEvent);

            SelectedColorGroup = linkedNavigationEvent.ColorGroup;
            _viewModel.Configure(linkedNavigationEvent.Key);
            ActivateItem(_viewModel);
        }