예제 #1
0
        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);
            }
        }
예제 #2
0
        private void ADDD_MouseDown(object sender, MouseButtonEventArgs e)
        {
            ToDoITem ToDoList = new ToDoITem();

            ToDo.Children.Add(ToDoList);
        }