private void BtnAddCheque_Click(object sender, EventArgs e) { if (TotalCheque() == _montant) { return; } if (_reste <= 0) { return; } var cheque = new NewchequeForm(this, _reste); cheque.Closing += (sndr, args) => LoadCheque(); cheque.ShowDialog(); }
private void pictureBoxAdd_Click(object sender, EventArgs e) { if (TotalCheque() == _montant) { return; } if (_reste <= 0) { return; } var cheque = new NewchequeForm(this, _reste, AvoirFinancier.numAvoir); cheque.Closing += (sndr, args) => LoadCheque(); cheque.ShowDialog(); }