private void btnCloturer_Click(object sender, EventArgs e)
 {
     if (contrat != null)
     {
         CloturingContrat?.Invoke(sender, e);
         this.Close();
     }
 }
Example #2
0
        private void OnCloturedContrat(object sender, EventArgs e)
        {
            ClotureForm cf = new ClotureForm(ref contrat);

            if (cf.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                DAO.getInstance().UpdateCollorateur();
                CloturingContrat?.Invoke(sender, e);
            }
        }