コード例 #1
0
        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;
        }
コード例 #2
0
 private static void OnApplicationSettingsChanged(object sender, PropertyChangedEventArgs args)
 {
     if (args.PropertyName.Equals("ItemsToShow"))
     {
         var loader = new EntityLoader();
         loader.LoadAsync();
     }
 }
コード例 #3
0
 private async Task<bool> RefreshData()
 {
     var loader = new EntityLoader();
     return await loader.LoadAsync();
 }