/// <summary /> private void OnWindowLoaded(object sender, RoutedEventArgs e) { bool success = WaFFLPersister.TryLoadSeason(out this.season); if (!success) { // if we were unable to load the season from disk, we will // scrape the data from the web agian. Thread thread = new Thread(this.refreshDelegate); thread.Start(); } else { this.CurrentSeason = this.season; } List <string> markedPlayers = null; success = MarkedPlayerPersister.TryLoadPlayers(out markedPlayers); if (!success) { markedPlayers = new List <string>(); } MarkedPlayers.Players = markedPlayers; }
private void WhenSaveClicked(object sender, RoutedEventArgs e) { WaFFLPersister.SaveSeason(this.season); MarkedPlayerPersister.SavePlayers(MarkedPlayers.Players); }