public PlayedFiles GetLastSeen(string fileName) { PlayedFiles playedFiles = null; LastSeenCollection.TryGetValue(fileName, out playedFiles); return(playedFiles); }
public void Add(PlayedFiles playedFiles) { if (!LastSeenCollection.ContainsKey(playedFiles.FileName)) { this.LastSeenCollection.Add(playedFiles.FileName, playedFiles); } }
public void Remove(PlayedFiles playedFiles) { if (LastSeenCollection.ContainsKey(playedFiles.FileName)) { this.LastSeenCollection.Remove(playedFiles.FileName); } }
public bool HasItem(PlayedFiles playedFiles) { return(LastSeenCollection.ContainsKey(playedFiles.FileName)); }
public void PlayCompletely() { LastPlayedPoisition.RemoveLastSeen(); LastPlayedPoisition = new PlayedFiles(this.FileName); }