Пример #1
0
		public SaveProductViewModel(IProductManager productManager, IProductCategoryManager categoryManager, IProductSubcategoryManager subcategoryManager,
			IAuthenticationService authService, IMvxMessenger messenger)
			: base(authService, messenger)
		{
			this.ShouldSubscribeToSessionChange = true;
			this._productManager = productManager;
			this._categoryManager = categoryManager;
			this._subcategoryManager = subcategoryManager;
			this.PropertyChanged += propertyChanged;
			this.MainImage = new ImageViewModel();
			validatePrice();
		}
Пример #2
0
 public FilterProductsViewModel(IProductManager productManager,
                                IProductCategoryManager categoryManager,
                                IProductSubcategoryManager subcategoryManager,
                                ICountryManager countryManager,
                                ICityManager cityManager,
                                ITagManager tagManager)
     : base()
 {
     this._productManager = productManager;
     this._tagManager = tagManager;
     this._cityManager = cityManager;
     this._countryManager = countryManager;
     this._subcategoryManager = subcategoryManager;
     this._categoryManager = categoryManager;
     this.ProductFilter.PropertyChanged += ProductFilter_PropertyChanged;
     this.ProductFilter.Tags.CollectionChanged += tagsChanged;
 }