public ReviewProductsPageViewModel(ILinCApiServices services) { _services = services; EditProductCommand = new CustomDelegateTimerCommand <Product>(async(item) => await EditProductAction(item), (item) => true); DeleteProductCommand = new CustomDelegateTimerCommand <Product>(async(item) => await DeleteProductAction(item), (item) => true); AddProductCommand = new CustomDelegateTimerCommand(() => AddProductAction(), () => true); SubmitButtonTappedCommand = new CustomDelegateTimerCommand(async() => await SubmitProductsAction(), () => true); }
public LoginPageViewModel(ILinCApiServices services) { _services = services; LoginCommand = new CustomDelegateTimerCommand(async() => await Login(), () => true); RegisterCommand = new CustomDelegateTimerCommand(() => Register(), () => true); CallCommand = new CustomDelegateTimerCommand(() => CallCustomerCare(), () => true); UserDetails = new LinCUser(); }
public SupplierCataloguePageViewModel(ILinCApiServices services) { _services = services; PickerCellCommand = new CustomDelegateTimerCommand <ProductType>(async(item) => await PickerTapped(item), item => true); SupplierSelectCommand = new CustomDelegateTimerCommand <LinCUser>(async(item) => await SupplierTapped(item), item => true); IsSupplierSearched = false; }
public ProductsPageViewModel(ILinCApiServices services) { _services = services; EditProductCommand = new CustomDelegateTimerCommand <Product>(async(item) => await EditProductAction(item), (item) => true); DeleteProductCommand = new CustomDelegateTimerCommand <Product>(async(item) => await DeleteProductAction(item), (item) => true); AddProductCommand = new CustomDelegateTimerCommand(() => AddProductAction(), () => true); SubmitButtonTappedCommand = new CustomDelegateTimerCommand(async() => await SubmitProductsAction(), () => true); ProductSelectionCommand = new CustomDelegateTimerCommand <Product>((item) => SelectProductAction(item), (item) => true); IncreaseQuantityCommand = new CustomDelegateTimerCommand <Product>((item) => IncreaseQuantityAction(item), (item) => true); DecreaseQuantityCommand = new CustomDelegateTimerCommand <Product>((item) => DecreaseQuantityAction(item), (item) => true); }
public AddProductPageViewModel(ILinCApiServices services) { _services = services; PickerCellCommand = new CustomDelegateTimerCommand <object>((item) => PickerTapped(item), item => true); NextButtonTappedCommand = new CustomDelegateTimerCommand(async() => await NextButtonTapped(), () => true); AddNewProductNameCommand = new CustomDelegateTimerCommand(() => AddNewProductNameAction(), () => true); SaveNewProductNameCommand = new CustomDelegateTimerCommand(() => SaveNewProductNameAction(), () => true); AdjustQuantityCommand = new CustomDelegateTimerCommand <string>((item) => AdjustQuantityAction(item), (item) => true); Product = new Product(); }
public CartPageViewModel(ILinCApiServices services) { _services = services; EditProductCommand = new CustomDelegateTimerCommand <Product>(async(item) => await EditProductAction(item), (item) => true); DeleteProductCommand = new CustomDelegateTimerCommand <Product>(async(item) => await DeleteProductAction(item), (item) => true); AddProductCommand = new CustomDelegateTimerCommand(() => AddProductAction(), () => true); PlaceOrderCommand = new CustomDelegateTimerCommand(() => PlaceOrderAction(), () => true); ProductSelectionCommand = new CustomDelegateCommand <Product>((item) => ProductSelectionAction(item), (item) => true); IncreaseQuantityCommand = new CustomDelegateCommand <Product>((item) => IncreaseQuantityAction(item), (item) => true); DecreaseQuantityCommand = new CustomDelegateCommand <Product>((item) => DecreaseQuantityAction(item), (item) => true); OrdersHeadingText = "Orders"; OrderSubmitText = "SUBMIT ORDER"; }
public UserDashboardPageViewModel(ILinCApiServices services) { _services = services; EditProductCommand = new CustomDelegateTimerCommand <Product>(async(item) => await EditProductAction(item), (item) => true); DeleteProductCommand = new CustomDelegateTimerCommand <Product>(async(item) => await DeleteProductAction(item), (item) => true); AddProductCommand = new CustomDelegateTimerCommand(() => AddProductAction(), () => true); PlaceOrderCommand = new CustomDelegateTimerCommand(() => PlaceOrderAction(), () => true); ProductSelectionCommand = new CustomDelegateCommand <Product>((item) => ProductSelectionAction(item), (item) => true); EditOrderCommand = new CustomDelegateTimerCommand <Order>(async(item) => await EditOrderAction(item), (item) => true); DeleteOrderCommand = new CustomDelegateTimerCommand <Order>(async(item) => await DeleteOrderAction(item), (item) => true); ProductsHeadingText = "Your products"; OrdersHeadingText = "Orders"; }
public RegistrationPageViewModel(ILinCApiServices services) { _services = services; UserTypeSelectionCommand = new CustomDelegateCommand <object>(userType => SectionVisibilityAction(userType), (userType) => true); UseLocationSelectionCommand = new CustomDelegateCommand <object>(selectionType => UseLocationSelectionAction(selectionType), (selectionType) => true); UserRegistrationSelectionCommand = new CustomDelegateCommand <object>(selectionType => UseRegistrationSelectionAction(selectionType), (selectionType) => true); ServiceTypeSelectionCommand = new CustomDelegateCommand <object>(selectionType => ServiceTypeSelectionAction(selectionType), (selectionType) => true); PickerCellCommand = new CustomDelegateTimerCommand <object>((item) => PickerTapped(item), item => true); UserDetails = new LinCUser(); UserDetails.UserTypeId = 0; UserDetails.ProductTypeIds = new List <int>(); IsOrgVisible = true; NextButtonTappedCommand = new CustomDelegateTimerCommand(async() => await NextButtonTapped(), () => true); }