private async void OnRefreshClick(object sender, RoutedEventArgs e) { var loader = new EntityLoader(); this.GlobalAppBar.IsOpen = false; var result = await loader.LoadAsync(); if (!result) { this.Map.IsEnabled = false; } this.itemGridView.SelectedItem = null; }
private static void OnApplicationSettingsChanged(object sender, PropertyChangedEventArgs args) { if (args.PropertyName.Equals("ItemsToShow")) { var loader = new EntityLoader(); loader.LoadAsync(); } }
private async Task<bool> RefreshData() { var loader = new EntityLoader(); return await loader.LoadAsync(); }