예제 #1
0
        private void SupprimerTache(object obj)
        {
            var tache = (Tache)CollectionViewSource.GetDefaultView(Taches).CurrentItem;

            Taches.Remove(tache);
            AccesDonnees.EnregistrerTaches(Taches.ToList());
        }
예제 #2
0
 public Contexte()
 {
     Taches          = new ObservableCollection <Tache>(AccesDonnees.ChargerTaches());
     _tachesAjoutees = new List <Tache>();
 }
예제 #3
0
 private void EnregistrerTache(Object o)
 {
     ModeEdit = ModesEdition.Consultation;
     AccesDonnees.EnregistrerTaches(_tachesAjoutees);
 }
예제 #4
0
 private void EnregistrerTache(object obj)
 {
     AccesDonnees.EnregistrerTaches(Taches.ToList());
     ModeEdition = !ModeEdition;
 }
예제 #5
0
 /// <summary>
 /// Constructeur qui initialise Taches et ModeEdition
 /// </summary>
 public Contexte()
 {
     ModeEdition = true;
     Taches      = new ObservableCollection <Tache>(AccesDonnees.ChargerTaches());
 }