public PageAjoutIndispo(PagePrincipale mainView)
 {
     InitializeComponent();
     DataContext         = this;
     LesMachinesSelected = new List <MachineVM>();
     LesIndisposSaisies  = new ObservableCollection <IndisponibilitéVM>();
     this.mainView       = mainView;
 }
 public PageModification(PagePrincipale mainView)
 {
     InitializeComponent();
     DataContext = this;
     LbChiffre   = LbNbMSelected;
     DateDuJour  = (DateTime)mainView.LaDate;
     _mainView   = mainView;
     if (DateDuJour.DayOfWeek == DayOfWeek.Saturday || DateDuJour.DayOfWeek == DayOfWeek.Sunday)
     {
         LesPostes = postesWEJF;
     }
     else
     {
         LesPostes = postesSemaine;
     }
 }