Exemplo n.º 1
0
        public static void CreateNote(string content)
        {
            ToDoTask noteToCreate = new ToDoTask();

            noteToCreate.Content     = content;
            noteToCreate.DateCreated = DateTime.Now;
            noteToCreate.IsCompleted = false;
            listOfTasks.Add(noteToCreate);
            ListOfTasksChanged?.Invoke(listOfTasks, EventArgs.Empty);
        }
Exemplo n.º 2
0
 public void DeleteNote()
 {
     listOfTasks.Remove(this);
     ListOfTasksChanged?.Invoke(listOfTasks, EventArgs.Empty);
 }