Ejemplo n.º 1
0
 void mruFindAdd(string fileonly)
 {
     if (MruLst.Any(r => fileonly.Equals(r.FileOnly, StringComparison.OrdinalIgnoreCase)))
     {
         Cur = MruLst.First(r => fileonly.Equals(r.FileOnly, StringComparison.OrdinalIgnoreCase));
     }
     else
     {
         //?? _mru.Add((_cur = new MediaInfoDto(fileonly) { LastUsed = DateTime.Now }));
     }
 }
Ejemplo n.º 2
0
        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
                }));
            }
        }