Exemplo n.º 1
0
        public async void CompleteGoalToday(BucketItem bucketItem)
        {
            int index = _bucketItems.IndexOf(bucketItem);

            _bucketItems[index].AddDate();
            await saveBucketItemDataAsync();
        }
Exemplo n.º 2
0
        public async void addItem(string name, string description)
        {
            var bucketItem = new BucketItem();

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

            _bucketItems.Add(bucketItem);
            await saveBucketItemDataAsync();
        }