Beispiel #1
0
        private void AjouterTache(object obj)
        {
            var tache = new Tache()
            {
                Id           = ListeTache.Any() ? ListeTache.Max(t => t.Id) + 1 : 1,
                DateCréation = DateTime.Today,
                DateEchéance = DateTime.Today,
                Priorité     = 1
            };

            ListeTache.Add(tache);
            TacheCourante      = tache;
            ModeEditionCourant = ModesEdition.Edition;
        }
Beispiel #2
0
 private void SupprimerTache(object obj)
 {
     ListeTache.Remove(TacheCourante);
     DAL.EnregistrerListeTache(ListeTache.ToList());
 }
Beispiel #3
0
 private void AnnulerCommande(object obj)
 {
     ListeTache.Remove(TacheCourante);
     ModeEditionCourant = ModesEdition.Consultation;
 }
Beispiel #4
0
 private void EnregistrerTache(object obj)
 {
     ModeEditionCourant = ModesEdition.Consultation;
     DAL.EnregistrerListeTache(ListeTache.ToList());
 }
Beispiel #5
0
 private void SupprimerTache(object obj)
 {
     ListeTache.Remove(TacheCourante);
 }