public SubCategoryViewModel(IRegionManager regionManager) { _subCategoryBl = new SubCategoryBL(); _subCategories = new ObservableCollection<SubCategoryVO>(_subCategoryBl.FindAll()); _categoryBl = new CategoryBL(); _categories = new ObservableCollection<CategoryVO>(_categoryBl.FindAll()); }
public CategoryViewModel(ICategoryView view, CategoryBL categoryBL) : base(view) { _categoryBL = categoryBL; _categories = new ObservableCollection<CategoryVO>(_categoryBL.FindAll()); }
//Standard registration //public SubCategoryViewModel(ISubCategoryView view, IRegionManager regionManager) // : base(view) //Navigation registration public SubCategoryViewModel(IRegionManager regionManager) { _regionManager = regionManager; _subCategoryBl = new SubCategoryBL(); _subCategories = new ObservableCollection<SubCategoryVO>(_subCategoryBl.FindAll()); _categoryBl = new CategoryBL(); _categories = new ObservableCollection<CategoryVO>(_categoryBl.FindAll()); NotificationRequest = new InteractionRequest<INotification>(); NotificationCommand = new DelegateCommand(RaiseNotification); ConfirmationRequest = new InteractionRequest<IConfirmation>(); ConfirmationCommand = new DelegateCommand(RaiseConfirmation); CustomPopupRequest = new InteractionRequest<INotification>(); CustomPopupCommand = new DelegateCommand(RaiseCustomPopup); SelectItemCommand = new DelegateCommand<object[]>(SelectItem); CategoryInfoCommand = new DelegateCommand<SubCategoryVO>(CategoryInfo); }
public CategoryViewModel(IRegionManager regionManager) { _categoryBL = new CategoryBL(); _categories = new ObservableCollection<CategoryVO>(_categoryBL.FindAll()); }
public WizardViewModel(IRegionManager regionManager) { Wizard = new WizardVO(); _categoryBL = new CategoryBL(); _categories = new ObservableCollection<CategoryVO>(_categoryBL.FindAll()); _subCategoryBL = new SubCategoryBL(); _wizardBL = new WizardBL(); Problem = new ProblemVO(); }