protected override void OnInitialize() { base.OnInitialize(); controller = Container.GetExportedValue<ManagerController>(); controller.Initialize(); shellService = Container.GetExportedValue<ShellService>(); selectionService = Container.GetExportedValue<SelectionService>(); managerStatusService = Container.GetExportedValue<IManagerStatusService>(); var view = (MockManagerView)shellService.ContentView; viewModel = ViewHelper.GetViewModel<ManagerViewModel>(view); }
public ManagerViewModel(IManagerView view, Lazy <ISelectionService> selectionService, IManagerStatusService managerStatusService, IPlayerService playerService, ITranscodingService transcodingService) : base(view) { this.selectionService = selectionService; ManagerStatusService = managerStatusService; PlayerService = playerService; TranscodingService = transcodingService; FolderBrowser = new FolderBrowserDataModel(); SearchFilter = new SearchFilterDataModel(); ClearSearchCommand = new DelegateCommand(ClearSearch); }
protected override void OnInitialize() { base.OnInitialize(); controller = Container.GetExportedValue <ManagerController>(); controller.Initialize(); shellService = Container.GetExportedValue <ShellService>(); selectionService = Container.GetExportedValue <SelectionService>(); managerStatusService = Container.GetExportedValue <IManagerStatusService>(); var view = (MockManagerView)shellService.ContentView; viewModel = ViewHelper.GetViewModel <ManagerViewModel>(view); }