Ejemplo n.º 1
0
        private void ScanFile(string filePath)
        {
            var file = new FileInfo(filePath);

            if (!file.Exists)
            {
                return;
            }

            var entries = new List <TodoEntry>();

            _data.Entries.RemoveAll(e => e.File == filePath);

            var parser = new ScriptsParser(filePath, Tags);

            entries.AddRange(parser.Parse());
            var temp = entries.Except(_data.Entries);

            _data.Entries.AddRange(temp);
        }
Ejemplo n.º 2
0
        private void ScanFile(string filePath)
        {
            var file = new FileInfo(filePath);
            if (!file.Exists)
                return;

            var entries = new List<TodoEntry>();
            _data.Entries.RemoveAll(e => e.File == filePath);

            var parser = new ScriptsParser(filePath, Tags);

            entries.AddRange(parser.Parse());
            var temp = entries.Except(_data.Entries);
            _data.Entries.AddRange(temp);
        }