public OpenContestWindowViewModel(IIsolatedStore store, IEnumerable <ContestInfo> knownContests)
        {
            this.Contests = new ObservableCollection <ContestInfo>();

            var repo = new RatingsRepository(store);

            foreach (var fileName in store.GetFileNames("*.xml"))
            {
                var c = repo.Load(fileName);
                this.Contests.Add(new ContestInfo()
                {
                    IsoStoreFileName = fileName, Name = c.Name, TrackListUrl = c.TrackListUrl
                });
            }

            AddKnownContests(knownContests);
        }
 public IEnumerable <string> GetContestFiles()
 {
     return(isolatedStore.GetFileNames("*.xml"));
 }