Esempio n. 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;
        }
Esempio n. 2
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            ModesEdition mode = (ModesEdition)value;

            return(mode != ModesEdition.Edition);
        }
Esempio n. 3
0
 private void AnnulerCommande(object obj)
 {
     ListeTache.Remove(TacheCourante);
     ModeEditionCourant = ModesEdition.Consultation;
 }
Esempio n. 4
0
 private void EnregistrerTache(object obj)
 {
     ModeEditionCourant = ModesEdition.Consultation;
     DAL.EnregistrerListeTache(ListeTache);
 }