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

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