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