public void LoadAndTransferRecords(string path) { List <string> files = Directory.EnumerateFiles(path, "*" + ScoutingJson.MatchRecordExtension, SearchOption.TopDirectoryOnly).ToList(); foreach (string f in files) { if (!f.EndsWith(ScoutingJson.MatchRecordExtension)) { continue; } string fn = Util.GetFileName(f, false); int position = GetPositionFromFilename(fn); RecordedMatch rec = ScoutingJson.ParseMatchRecord(f); rec.PostJsonLoading(Event); Records[position] = rec; OnPropertyChanged("CanMerge"); MarkReady(position); bool result = MoveFileToEventPath(f); } }