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; }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { ModesEdition mode = (ModesEdition)value; return(mode != ModesEdition.Edition); }
private void AnnulerCommande(object obj) { ListeTache.Remove(TacheCourante); ModeEditionCourant = ModesEdition.Consultation; }
private void EnregistrerTache(object obj) { ModeEditionCourant = ModesEdition.Consultation; DAL.EnregistrerListeTache(ListeTache); }