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(); }
public OrderSubCategoryViewModel(Category category, INavigation navigation, IStocklistService slService) { this.navigation = navigation; this.currentCategory = category; stocklistService = slService; Initialize(); }
public StocklistEditProductViewModel(Product product, INavigation navigation, IStocklistService slService) { this.navigation = navigation; this.currentProduct = product; stocklistService = slService; productValidator = new ProductValidator(); RefreshProducts(); }
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(); }