Beispiel #1
0
 public OrderProductViewModel(SubCategory subCategory, INavigation navigation, IStocklistService slService)
 {
     this.navigation         = navigation;
     this.currentSubCategory = subCategory;
     stocklistService        = slService;
     Initialize();
 }
 public StocklistSubCategoryViewModel(Category category, INavigation navigation, IStocklistService slService)
 {
     this.navigation      = navigation;
     this.currentCategory = category;
     stocklistService     = slService;
     RefreshSubCategories();
 }
Beispiel #3
0
 public OrderSubCategoryViewModel(Category category, INavigation navigation, IStocklistService slService)
 {
     this.navigation      = navigation;
     this.currentCategory = category;
     stocklistService     = slService;
     Initialize();
 }
Beispiel #4
0
 public StocklistEditProductViewModel(Product product, INavigation navigation, IStocklistService slService)
 {
     this.navigation     = navigation;
     this.currentProduct = product;
     stocklistService    = slService;
     productValidator    = new ProductValidator();
     RefreshProducts();
 }
Beispiel #5
0
        public StocklistProductViewModel(SubCategory subCategory, INavigation navigation, IStocklistService slService)
        {
            this.navigation         = navigation;
            this.currentSubCategory = subCategory;
            stocklistService        = slService;
            LoadFile();

            RefreshProducts();

            MessagingCenter.Subscribe(this, MessageNames.ProductSaved,
                                      async(StocklistEditProductViewModel sender, Product product) =>
            {
                Products = new ObservableCollection <Product>(await stocklistService.GetProductListById(currentSubCategory.Id));
            });
        }
 public StocklistViewModel(INavigation navigation, IStocklistService slService)
 {
     this.navigation  = navigation;
     stocklistService = slService;
     Initialize();
 }