Example #1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            for (int i = 0; i < clbChores.Items.Count; i++)
            {
                var chore      = clbChores.Items[i] as ChoreDto;
                var isComplete = clbChores.CheckedItems.OfType <ChoreDto>().Any(x => x.Id == chore?.Id);
                chore.IsCompleted = isComplete;
                _choreService.Save(chore);
            }

            foreach (var chore in clbChores.Items)
            {
            }
        }