Esempio n. 1
0
 private async Task AddItemAsync(BaseBingMapEntity baseBingMapEntity)
 {
     try
     {
         await JSRuntime.Current.InvokeAsync <object>($"{_mapNamespace}.addItem", Id, baseBingMapEntity);
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
Esempio n. 2
0
 private async void EntitiesRemoved(object sender, BaseBingMapEntity removed)
 {
     try
     {
         await JSRuntime.Current.InvokeAsync <object>("rpedrettiBlazorComponents.bingMaps.map.removeItem", Id, removed);
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
Esempio n. 3
0
 private async Task UpdateItemAsync(BaseBingMapEntity baseBingMapEntity)
 {
     try
     {
         await JSRuntime.Current.InvokeAsync <object>("rpedrettiBlazorComponents.bingMaps.map.updateItem", Id, baseBingMapEntity);
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }