예제 #1
0
        protected override void ShowProductEditor(ProductLineItem lineItem)
        {
            var dialog = new ProductSelectorDialog(Activity);
            dialog.ItemStateChanged += delegate(ProductDetails productWrapper)
            {
                MakeSaleFragment.AdjustSale(Order, productWrapper);
                ApplyOrder();
            };

            dialog.Show(new ProductDetails(lineItem), allowSellReturnables: true, showAvailable: true);
        }
        protected override void ShowProductEditor(ProductLineItem lineItem)
        {
            var dialog = new ProductSelectorDialog(Activity);

            dialog.ItemStateChanged += delegate(ProductDetails productDetails)
            {
                MakeOrderFragment.AdjustOrder(Order, productDetails);
                ApplyOrder();
            };
            dialog.Show(new ProductDetails(lineItem));
        }