public FoodViewModel() { LoadCategoryList(); SearchFoodContent = string.Empty; PagingViewmodel = new PagingViewmodel(LoadFoodListPaging); LoadFood(); }
public CategoryViewModel() { NameSearch = String.Empty; PagingViewmodel = new PagingViewmodel(SearchCategory); PagingViewmodel.TotalCountItem = LoadTotalCount(); LoadCategory(); }
public void SearchProduct() { PagingViewmodel.TotalCountItem = GetCountProduct(); PagingViewmodel.GotoFirstPage(); PagingViewmodel.TotalCountDisplay = Products == null ? 0 : Products.Count; }
public ProductViewModel() { ProductServices = new ProductRepository(DbHelper.Instance.GetConnection()); PagingViewmodel = new PagingViewmodel(LoadProduct); SearchProduct(); }
public void SearchSupplier() { PagingViewmodel.TotalCountItem = GetCountUnit(); PagingViewmodel.GotoFirstPage(); PagingViewmodel.TotalCountDisplay = Suppliers == null ? 0 : Suppliers.Count; }
public SupplierViewModel() { SupplierServices = new SupplierRepository(DbHelper.Instance.GetConnection()); PagingViewmodel = new PagingViewmodel(LoadSupplier); SearchSupplier(); }
public void SearchUnit() { PagingViewmodel.TotalCountItem = GetCountUnit(); PagingViewmodel.GotoFirstPage(); PagingViewmodel.TotalCountDisplay = Units == null ? 0 : Units.Count; }
public UnitViewModel() { UnitServices = new UnitRepository(DbHelper.Instance.GetConnection()); PagingViewmodel = new PagingViewmodel(LoadUnit); SearchUnit(); }
public FoodsTebleViewModel() { NameSearch = String.Empty; PagingViewmodel = new PagingViewmodel(SearchTable, 18); LoadTable(); }
public void SearchAccount() { PagingViewmodel.TotalCountItem = GetCountAccount(); PagingViewmodel.GotoFirstPage(); PagingViewmodel.TotalCountDisplay = Accounts == null ? 0 : Accounts.Count; }
public AccountViewModel() { AccountServices = new AccountRepository(DbHelper.Instance.GetConnection()); PagingViewmodel = new PagingViewmodel(LoadAccount); }
public void SearchCategory() { PagingViewmodel.TotalCountItem = LoadCountCategory(); PagingViewmodel.GotoFirstPage(); PagingViewmodel.TotalCountDisplay = Categories == null ? 0 : Categories.Count; }
public CategoryViewModel() { CategoryServices = new CategoryRepository(DbHelper.Instance.GetConnection()); PagingViewmodel = new PagingViewmodel(LoadCategory); SearchCategory(); }