public SubCategoryViewModel(IRegionManager regionManager)
        {
            _subCategoryBl = new SubCategoryBL();
            _subCategories = new ObservableCollection <SubCategoryVO>(_subCategoryBl.FindAll());

            _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();
        }
예제 #3
0
        //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);
        }
예제 #4
0
 public SubCategory MapSubCategory(SubCategoryBL subCategory)
 {
     return(Mapper.Map <SubCategoryBL, SubCategory>(subCategory));
 }
예제 #5
0
 public SubCategoryController()
 {
     SubCategoryBL = new SubCategoryBL();
 }