public LigneFacture(NewAvoirForm nav, int nf, DateTime dt) { InitializeComponent(); _numFacture = nf; _date = dt; _newAvoir = nav; _lvwColumnSorter = new ListViewColumnSorter(); listViewLignes.ListViewItemSorter = _lvwColumnSorter; }
private void InsertCheque(NewAvoirForm f) { try { var cheque = new CHEQUE { numCheque = textBoxRef.Text, description = textBoxDesc.Text, codeBank = (int)comboBoxBank.SelectedValue, date = dateTimePicker.Value.Date, nom = textBoxNom.Text, montant = decimal.Parse(textBoxMontant.Text) }; f.ChequesBuffer = cheque; } catch (Exception ex) { Messages.Error(ex.Message); } }
private void buttonNouvelAvoir_Click(object sender, EventArgs e) { var navrf = new NewAvoirForm(); navrf.ShowDialog(); }
public NewchequeForm(NewAvoirForm av, decimal montant) { InitializeComponent(); _montant = montant; _naf = av; }