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); }
public void DeleteNote() { listOfTasks.Remove(this); ListOfTasksChanged?.Invoke(listOfTasks, EventArgs.Empty); }