Esempio n. 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            dbSave = new dbSave(PATH);

            try
            {
                _todoData = dbSave.LoadDate();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                Close();
            }

            dgTodoList.ItemsSource    = _todoData;
            dgTodoListTwo.ItemsSource = _todoData;
            _todoData.ListChanged    += _todoData_ListChanged;
        }
Esempio n. 2
0
 public Downloader(int paralelism, parser parserFunc, dbSave dbSaveFunc)
 {
     this.semaphore  = new SemaphoreSlim(paralelism);
     this.parserFunc = parserFunc;
     this.dbSaveFunc = dbSaveFunc;
 }