private void instancesModel(IMainWindowViewModel main) { _itemModel = (ItemModel)_main.ModelCreator.createModel(QOBDModels.Enums.EModel.ITEM); _itemsModel = new List <ItemModel>(); _selectedProviderModel = (ProviderModel)_main.ModelCreator.createModel(QOBDModels.Enums.EModel.PROVIDER); _itemDetailViewModel = (IItemDetailViewModel)_main.ViewModelCreator.createViewModel(Enums.EViewModel.ITEMDETAIL, _main); _itemSideBarViewModel = (ISideBarViewModel)_main.ViewModelCreator.createViewModel(Enums.EViewModel.ITEMMENU, _main); }
public MainViewModel(INavigationViewModel navigationViewModel, IItemDetailViewModel itemDetailViewModel) { NavigationViewModel = navigationViewModel; ItemDetailViewModel = itemDetailViewModel; }