private async void UpdateFragments(object sender, RoutedEventArgs e) { try { await ProphecyProcessor.LoadData(); await UniqueProcessor.LoadData(); UserControl_Loaded(sender, e); } catch (System.Net.Http.HttpRequestException) { Status.Text = "Could not resolve hostname.\nCheck your internet connection, or poe.ninja servers may be down."; } }
private async void UserControl_Loaded(object sender, RoutedEventArgs e) { try { await UniqueProcessor.InitLoadAsync(); await ProphecyProcessor.InitLoadAsync(); List <FatedUniquePriceDiff> FatedUniques = UniqueProcessor.FatedUniqueProfitCalc(); FatedList.ItemsSource = FatedUniques; Status.Text = $"Fated Unique prices successfully loaded for {ApiHelper.currentLeague} league"; } catch (System.Net.Http.HttpRequestException) { Status.Text = "Could not resolve hostname.\nCheck your internet connection, or poe.ninja servers may be down."; } }