示例#1
0
        public bool ToggleItemCompleted(ToDoItem flagItem)
        {
            bool result = false;

            if (flagItem != null && flagItem.Error == null)
            {
                if (ToDoList.Contains(flagItem))
                {
                    flagItem.CompleteToggle();
                    SyncToDoList();
                    result = true;
                }
            }

            return(result);
        }