Пример #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            fileIOService = new FileIOService(PATH);
            try
            {
                todoDataList = fileIOService.Load_Data();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                Close();
            }

            // подключаем источник инфы
            dgTodoList.ItemsSource    = todoDataList;
            todoDataList.ListChanged += TodoList_ListChanged;
        }