async Task addToMruListIfNotThere(MediaInfoDto nxtPLt) { if (!MruLst.Any(r => r.FileOnly.Equals(nxtPLt.FileOnly, StringComparison.OrdinalIgnoreCase))) { await nxtPLt.SetThumbnail(/*sf*/); //sep13 MruLst.Add(nxtPLt); } }
public void Mru_FindAdd_MakeCur(StorageFile sf) { if (MruLst.Any(r => sf.Name.Equals(r.FileOnly, StringComparison.OrdinalIgnoreCase))) { Cur = MruLst.First(r => sf.Name.Equals(r.FileOnly, StringComparison.OrdinalIgnoreCase)); if (!Cur.PathFile.Equals(sf.Path, StringComparison.OrdinalIgnoreCase)) // if from another PC: update path to this one. { Cur.PathFile = sf.Path; } } else { MruLst.Add((Cur = new MediaInfoDto(sf) { LastUsed = DateTime.Now })); } }