public void Add(string filename) { var job = new Job { FullPath = filename }; Jobs.Add(job); }
public void Search(string dir) { foreach (string file in Directory.EnumerateFiles(dir, "*.xml")) { var job = new Job { FullPath = file }; Jobs.Add(job); } }