예제 #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            string[] lines = System.IO.File.ReadAllLines(@"C:\data.txt");

            foreach (string line in lines)
            {
                string[] parts = line.Split('|');

                price price = new price();


                price.date.Text      = parts[0];
                price.TaskName.Text  = parts[1];
                price.TaskPrice.Text = parts[2];

                TaskList.Children.Add(price);
            }
        }
예제 #2
0
        private void addTask_MouseDown(object sender, MouseButtonEventArgs e)
        {
            price price = new price();

            TaskList.Children.Add(price);
        }