private void Window_Loaded(object sender, RoutedEventArgs e) { string[] lines = System.IO.File.ReadAllLines(A); foreach (string line in lines) { string[] parts = line.Split('|'); ToDoITem item = new ToDoITem(); item.ITEMname = parts[1]; item.DeleteItem += new EventHandler(DeleteItem); ToDo.Children.Add(item); } }
private void ADDD_MouseDown(object sender, MouseButtonEventArgs e) { ToDoITem ToDoList = new ToDoITem(); ToDo.Children.Add(ToDoList); }