Exemple #1
0
        /// <summary>
        /// Method called when the event CreatingContrat is fired
        /// Instanciate the controller CtrlNewContrat in order to create a new contract
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OnCreatedContrat(object sender, EventArgs e)
        {
            CtrlNewContrat ctrlNewContrat = new CtrlNewContrat(collaborateur);

            ctrlNewContrat.SavingContrat += new EventHandler(this.OnSavedContrat);
            ctrlNewContrat.Display();
        }
Exemple #2
0
 /// <summary>
 /// Method called when the event SavingCollabo is fired
 /// initialize a new instance of the class CtrlNewContrat
 /// </summary>
 /// <param name="collabo"></param>
 private void OnSavedCollabo(Collaborateur collabo)
 {
     if (collabo != null)
     {
         this.collaborateur = collabo;
         CtrlNewContrat ctrlNewContrat = new CtrlNewContrat(collabo);
         ctrlNewContrat.SavingContrat += new EventHandler(this.OnSavedContrat);
         ctrlNewContrat.Display();
     }
 }