private void Txt_DateRelEncour_TextChanged(object sender, TextChangedEventArgs e)
 {
     try
     {
         if (this.Txt_DateRelEncour.Text.Length == SessionObject.Enumere.TailleDate)
         {
             DateTime?pDateFin = ClasseMEthodeGenerique.IsDateValider(this.Txt_DateRelEncour.Text);
             if (ClasseMEthodeGenerique.IsDateSaisieValide(pDateFin, DateDernierEvt))
             {
                 CreeEvenement(LeEvenementSelect, LeCompteurSelect);
                 if (LaDemande.LaDemande.TYPEDEMANDE == SessionObject.Enumere.FactureManuelle ||
                     LaDemande.LaDemande.TYPEDEMANDE == SessionObject.Enumere.Resiliation)
                 {
                     CreePagisol(LePagisolCree);
                 }
             }
             else
             {
                 var w = new MessageBoxControl.MessageBoxChildWindow(Langue.lbl_Menu, Langue.Msg_DateFinInferieurDateDebut, MessageBoxControl.MessageBoxButtons.YesNo, MessageBoxControl.MessageBoxIcon.Question);
                 w.OnMessageBoxClosed += (_, result) =>
                 {
                     if (w.Result == MessageBoxResult.OK)
                     {
                         CreeEvenement(LeEvenementSelect, LeCompteurSelect);
                         if (LaDemande.LaDemande.TYPEDEMANDE == SessionObject.Enumere.FactureManuelle ||
                             LaDemande.LaDemande.TYPEDEMANDE == SessionObject.Enumere.Resiliation)
                         {
                             CreePagisol(LePagisolCree);
                         }
                     }
                     else
                     {
                         this.Txt_DateRelEncour.Text = string.Empty;
                         this.Txt_DateRelEncour.Focus();
                     }
                 };
                 w.Show();
             }
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }