public async void CompleteRitualToday(Ritual ritual)
        {
            int index = _rituals.IndexOf(ritual);

            _rituals[index].AddDate();
            await saveRitualDataAsync();
        }
 public async void AddRitual(string name, string description)
 {
     var ritual = new Ritual();
     ritual.Name = name;
     ritual.Description = description;
     ritual.Dates = new ObservableCollection<DateTime>();
     _ritual.Add(ritual);
     await saveRitualDataAsync();
 }
        public async void AddRitual(string name, string description)
        {
            var ritual = new Ritual();

            ritual.Name        = name;
            ritual.Description = description;
            ritual.Dates       = new ObservableCollection <DateTime>();

            _rituals.Add(ritual);
            await saveRitualDataAsync();
        }
Example #4
0
 public async void CompleteRitualToday(Ritual ritual)
 {
   int index = _rituals.IndexOf(ritual);
   _rituals[index].AddDate();
   await saveRitualDataAsync();
 }