public SaleConfirmation(float totalAmount, bool?isExistingCustomer, float?accountBalance)
        {
            InitializeComponent();
            _saleConfirmationModel = new SaleConfirmationModel(totalAmount, accountBalance);
            _saleConfirmationModel.IsExistingCustomer = isExistingCustomer;
            _saleConfirmationModel.CustomerAccountBal = accountBalance;

            this.DataContext = _saleConfirmationModel;
        }
Exemple #2
0
 public SaleConfirmation(decimal totalAmount)
 {
     InitializeComponent();
     _saleConfirmationModel = new SaleConfirmationModel(totalAmount);
     this.DataContext       = _saleConfirmationModel;
 }