public UC_CONTROLE_TachesJournalieres()
 {
     InitializeComponent();
     _orientationActuelle = System.Windows.Forms.SystemInformation.ScreenOrientation;
     this.SizeChanged += UC_ChoixTachesJournalieres_SizeChanged;
     _BW_Display = new BackgroundWorker();
     _BW_Display.WorkerReportsProgress = true;
     _BW_Display.WorkerSupportsCancellation = true;
     _BW_Display.ProgressChanged += BW_Display_ProgressChanged;
     _BW_Display.DoWork += new DoWorkEventHandler(BW_WORK_GetTachesJournalieres);
     GetMenuTachesJournalieres();
     DisplayTachesJournalieres();
 }
 public UC_CONTROLE_Verifications()
 {
     InitializeComponent();
     _orientationActuelle = System.Windows.Forms.SystemInformation.ScreenOrientation;
     this.SizeChanged += UC_SizeChanged;
     _BW_Display = new BackgroundWorker();
     _BW_Display.WorkerReportsProgress = true;
     _BW_Display.WorkerSupportsCancellation = true;
     _BW_Display.ProgressChanged += BW_Display_ProgressChanged;
     _BW_Display.DoWork += new DoWorkEventHandler(BW_WORK_GetVerifications);
     _BW_Display.RunWorkerCompleted += _BW_Display_RunWorkerCompleted;
     GetMenuVerifications();
     DisplayVerifications();
 }
 void UC_ChoixTachesJournalieres_SizeChanged(object sender, SizeChangedEventArgs e)
 {
     if (_orientationActuelle != System.Windows.Forms.SystemInformation.ScreenOrientation) //Alors changement de l'écran
     {
         DisplayTachesJournalieres();
     }
     _orientationActuelle = System.Windows.Forms.SystemInformation.ScreenOrientation;
 }
 void UC_SizeChanged(object sender, SizeChangedEventArgs e)
 {
     if (_orientationActuelle != System.Windows.Forms.SystemInformation.ScreenOrientation) //Alors changement de l'écran
     {
         DisplayVerifications();
     }
     _orientationActuelle = System.Windows.Forms.SystemInformation.ScreenOrientation;
 }