示例#1
0
        private void RepopulateTasksFromContent(string tasksContent)
        {
            _reader = new GenericTaskReader(tasksContent, ActualFiles);
            _data   = _reader.GetTasks();
            _dbHandler.ClearTasks();

            foreach (var item in _data)
            {
                try {
                    _dbHandler.InsertGenericTask(item);
                }
                catch (SQLiteException e) {
                    Toast.MakeText(this, "Error: " + e.Message + ". item::" + item.Identifier, ToastLength.Long).Show();
                }
            }
            RenderItems(_listView, _data);
        }