Example #1
0
 public void AfficherPresenceDoubleClicked(PlanningBuilder pl)
 {
     if (pl.ListCo.FirstOrDefault() != null)
     {
         App.currentCo     = pl.ListCo.FirstOrDefault();
         App.currentCourse = pl.ListCo.First().Course;
         Console.WriteLine(pl);
         App.Messenger.NotifyColleagues(App.MSG_SHOW_PRESENCE_FORM);
     }
 }
Example #2
0
        /**
         * Renvoie la première collection de ObservableCollection<PlanningListView>
         */
        public ObservableCollection <PlanningBuilder> BuildPlanningsBuilder(DateTime mondayDate, DateTime fridayDate)
        {
            ObservableCollection <PlanningBuilder> res = new ObservableCollection <PlanningBuilder>();
            List <Courseoccurrence> CoursesOccurences  = GetCoInInterval(mondayDate, fridayDate);

            int cptdays = (int)(fridayDate - mondayDate).TotalDays; //

            for (int i = 0; i <= cptdays; ++i)                      // pour chaque jour de la semaine nous devons créer un PlanningListView
            {
                DateTime        dateduJour = mondayDate.AddDays(i);
                PlanningBuilder pl         = new PlanningBuilder(dateduJour);
                res.Add(pl);
            }
            return(res);
        }