static void Main(string[] args) { ToDoNote myNote1 = new ToDoNote("I Don't know anymore", DateTime.Now.Date, "High"); ToDoNote myNote2 = new ToDoNote("I really don't know anymore", DateTime.Now.Date, "Low"); ToDoList myToDoList = new ToDoList("Susan"); myToDoList.Add(myNote1); myToDoList.Add(myNote2); myToDoList[1].FileInputName("todo.xml"); myToDoList[0].FileInputName("todo.xml"); }
static void Main(string[] args) { ToDoNote note = new ToDoNote("Test1", new DateTime(2014, 10, 10, 20, 22, 16), Priority.High); note.InputFileName("MyXml.xml"); note.ReadContentFromXMLFile("MyXml.xml"); //List<ToDoNote> myTodoList = new List<ToDoNote> //{ // new ToDoNote("Test1", DateTime.Now, Priority.High), // new ToDoNote("Test2", DateTime.Now, Priority.Low), // new ToDoNote("Test3", DateTime.Now, Priority.Normal), // new ToDoNote("Test4", DateTime.Now, Priority.High) //}; //ToDoList list = new ToDoList("Mark"); //foreach (var item in myTodoList) //{ // list.Add(item); //} //Console.WriteLine(list[1]); // Console.WriteLine(list); }
public void Add(ToDoNote addNote) { list.Add(addNote); }
public void Add(ToDoNote item) { myTodo.Add(item); }