示例#1
0
        void ApplyTaxExecute()
        {
            var windowManager = base.GetService <IWindowManager>();

            DiscountOrTaxDialogViewModel dialog =
                new DiscountOrTaxDialogViewModel("Recargo", "Ingrese la cantidad que quiere recargar:", tax, taxInPercent);

            if (windowManager.ShowDialog(dialog, this) == true)
            {
                if (tax != dialog.Quantity)
                {
                    Tax = dialog.Quantity;
                }
                if (taxInPercent != dialog.InPercent)
                {
                    TaxInPercent = dialog.InPercent;
                }
            }
        }
示例#2
0
        void ApplyDiscountExecute()
        {
            var windowManager = base.GetService <IWindowManager>();

            DiscountOrTaxDialogViewModel dialog =
                new DiscountOrTaxDialogViewModel("Descuento", "Ingrese la cantidad que quiere descontar:", discount, discountInPercent);

            if (windowManager.ShowDialog(dialog, this) == true)
            {
                if (discount != dialog.Quantity)
                {
                    Discount = dialog.Quantity;
                }
                if (discountInPercent != dialog.InPercent)
                {
                    DiscountInPercent = dialog.InPercent;
                }
            }
        }