コード例 #1
0
 public PageAjoutIndispo(PagePrincipale mainView)
 {
     InitializeComponent();
     DataContext         = this;
     LesMachinesSelected = new List <MachineVM>();
     LesIndisposSaisies  = new ObservableCollection <IndisponibilitéVM>();
     this.mainView       = mainView;
 }
コード例 #2
0
 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;
     }
 }