void AddItemToGrid(Backend.Objects.SaleItem item) { //Fill Grid [ ProductsCheckoutGrid ] With Rows SaleLedgerProductModel productModel = new SaleLedgerProductModel { Item = item, Currency = Currency, }; //Add To Grid ProductsCheckoutGrid.Controls.Add(productModel); }
void AddProductToCheckoutGrid(Backend.Objects.SaleItem item) { //Fill Grid [ CheckoutGrid ] With Rows ProductCheckout productModel = new ProductCheckout { Item = item, Sale = Sale, OnRemove = OnRemoveCheckoutProduct, OnToggle = OnToggleCheckoutItem, OnUpdate = OnUpdateCheckoutItem, }; //Add To Grid CheckoutGrid.Controls.Add(productModel); }