public MainWindow() { InitializeComponent(); this.DataContext = this; ProduitsCollection = new ObservableCollection <TableProduct>(); EchangeDirectCollection = new ObservableCollection <TableEchangeDirect>(); AvoirCollection = new ObservableCollection <TableAvoir>(); RemiseCollection = new ObservableCollection <TableRemise>(); ReassortDataComboItems = FormUtils.GetReassortComoboboxItems(); ProduitsDataComboItems = FormUtils.GetProduitsComoboboxItems(); RemiseTypeDataComboItems = FormUtils.GetRemiseTypeComoboboxItems(); PaiementTypesDataComboItems = FormUtils.GetPaiementTypeComoboboxItems(); PaiementRendreTypesDataComboItems = FormUtils.GetPaiementRendreComoboboxItems(); TransactionManager = new TransactionManager(); TransactionRegister = new TransactionRegister(); }
private void EmittedCouponValidateButton_Click(object sender, RoutedEventArgs e) { if (EmittedCouponOnlyCDCheckbox.IsChecked == true) { result.onlyOn = ProductTypeEnum.CD; } if (EmittedCouponNCCheckbox.IsChecked == true) { result.transactionSpecificity = AvoirTypeEnum.NC; } //Registering Emitted Coupon... TransactionRegister.registerEmittedCouponForVente(calculBean, transaction, result.transactionSpecificity, result.onlyOn); EmittedCouponOnlyCDCheckbox.IsChecked = false; EmittedCouponNCCheckbox.IsChecked = false; this.Close(); }
public EmittedCouponSpecificities() { TransactionRegister = new TransactionRegister(); result = new EmittedCouponSpecificityResultBean(); InitializeComponent(); }