private async void OnLoadedPopulateData(object sender, LoadStatusEventArgs e) { // If layer isn't loaded, do nothing. if (e.Status != LoadStatus.Loaded) { return; } // Create new query object that contains a basic 'include everything' clause. QueryParameters queryParameters = new QueryParameters { WhereClause = "1=1", // Restrict query with a time extent that covers the desired interval (beginning of time to September 16th, 2000). TimeExtent = new TimeExtent(new DateTime(1, 1, 1), new DateTime(2000, 9, 16)) }; // Create list of the fields that are returned from the service. string[] outputFields = { "*" }; try { // Populate feature table with the data based on query. await _myFeatureTable.PopulateFromServiceAsync(queryParameters, true, outputFields); } catch (Exception ex) { new UIAlertView("Error", ex.ToString(), (IUIAlertViewDelegate)null, "OK", null).Show(); } }
private async void OnLoadedPopulateData(object sender, LoadStatusEventArgs e) { // If layer isn't loaded, do nothing if (e.Status != LoadStatus.Loaded) { return; } // Create new query object that contains a basic 'include everything' clause QueryParameters queryParameters = new QueryParameters() { WhereClause = "1=1" }; // Create a new time extent that covers the desired interval (beginning of time to September 16th, 2000) TimeExtent myExtent = new TimeExtent(new DateTime(1, 1, 1), new DateTime(2000, 9, 16)); // Apply the time extent to the query parameters queryParameters.TimeExtent = myExtent; // Create list of the fields that are returned from the service string[] outputFields = { "*" }; try { // Populate feature table with the data based on query await _myFeatureTable.PopulateFromServiceAsync(queryParameters, true, outputFields); } catch (Exception ex) { await((Page)Parent).DisplayAlert("Error", ex.ToString(), "OK"); } }
private async void OnLoadedPopulateData(object sender, LoadStatusEventArgs e) { // If layer isn't loaded, do nothing if (e.Status != LoadStatus.Loaded) { return; } // Create new query object that contains parameters to query specific request types QueryParameters queryParameters = new QueryParameters() { WhereClause = "req_Type = 'Tree Maintenance or Damage'" }; // Create list of the fields that are returned from the service string[] outputFields = { "*" }; try { // Populate feature table with the data based on query await _incidentsFeatureTable.PopulateFromServiceAsync(queryParameters, true, outputFields); } catch (Exception ex) { MessageBox.Show(ex.ToString(), "Error"); } }
async private void OnMapsLoadStatusChanged(object sender, LoadStatusEventArgs e) { // Update the load status information await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { LoadStatusTextBlock.Text = string.Format("Map's load status : {0}", e.Status.ToString()); }); }
private void OnMapsLoadStatusChanged(object sender, LoadStatusEventArgs e) { // Update the load status information Dispatcher.BeginInvoke( new ThreadStart(() => loadStatusLabel.Content = string.Format("Maps' load status : {0}", e.Status.ToString()) )); }
private void OnMapsLoadStatusChanged(object sender, LoadStatusEventArgs e) { // Update the load status information Dispatcher.BeginInvoke( new ThreadStart(() => LoadStatusLabel.Content = string.Format("Map's load status : {0}", e.Status.ToString()) )); }
async private void OnMapsLoadStatusChanged(object sender, LoadStatusEventArgs e) { // Update the load status information await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { loadStatusTextBlock.Text = string.Format("Maps' load status : {0}", e.Status.ToString()); }); }
private void OnMapsLoadStatusChanged(object sender, LoadStatusEventArgs e) { // Update the load status information DispatcherQueue.TryEnqueue(Microsoft.UI.Dispatching.DispatcherQueuePriority.Normal, () => { LoadStatusTextBlock.Text = string.Format("Map's load status : {0}", e.Status.ToString()); }); }
private void OnMapsLoadStatusChanged(object sender, LoadStatusEventArgs e) { // Make sure that the UI changes are done in the UI thread. InvokeOnMainThread(() => { // Update the load status information. _loadStatusLabel.Text = $"Map's load status: {e.Status}"; }); }
private void OnMapsLoadStatusChanged(object sender, LoadStatusEventArgs e) { // Make sure that the UI changes are done in the UI thread RunOnUiThread(() => { // Update the load status information _loadStatusTextView.Text = $"Map's load status : {e.Status}"; }); }
private void OnMapsLoadStatusChanged(object sender, LoadStatusEventArgs e) { // Make sure that the UI changes are done in the UI thread InvokeOnMainThread(() => { // Update the load status information _loadStatusTextView.Text = string.Format( "Maps' load status : {0}", e.Status.ToString()); }); }
private void OnMapsLoadStatusChanged(object sender, LoadStatusEventArgs e) { // Make sure that the UI changes are done in the UI thread Device.BeginInvokeOnMainThread(() => { // Update the load status information loadStatusLabel.Text = string.Format( "Maps' load status : {0}", e.Status.ToString()); }); }
private void OnMapsLoadStatusChanged(object sender, LoadStatusEventArgs e) { // Make sure that the UI changes are done in the UI thread RunOnUiThread(() => { // Update the load status information _loadStatusTextView.Text = string.Format( "Maps' load status : {0}", e.Status.ToString()); }); }
private void WebMapLoadStatusChanged(object sender, LoadStatusEventArgs e) { DispatcherQueue.TryEnqueue(Microsoft.UI.Dispatching.DispatcherQueuePriority.Normal, () => { // Report errors if map failed to load if (e.Status == LoadStatus.FailedToLoad) { Map map = (Map)sender; Exception err = map.LoadError; if (err != null) { _ = new MessageDialog2(err.Message, "Map load error").ShowAsync(); } } }); }
private async void WebMapLoadStatusChanged(object sender, LoadStatusEventArgs e) { await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, async() => { // Report errors if map failed to load if (e.Status == LoadStatus.FailedToLoad) { Map map = (Map)sender; Exception err = map.LoadError; if (err != null) { await new MessageDialog(err.Message, "Map load error").ShowAsync(); } } }); }
private async void OnLoadedPopulateData(object sender, LoadStatusEventArgs e) { // If layer isn't loaded, do nothing if (e.Status != LoadStatus.Loaded) return; // Create new query object that contains parameters to query specific request types QueryParameters queryParameters = new QueryParameters() { WhereClause = "req_Type = 'Tree Maintenance or Damage'" }; // Create list of the fields that are returned from the service var outputFields = new string[] { "*" }; // Populate feature table with the data based on query await _incidentsFeatureTable.PopulateFromServiceAsync(queryParameters, true, outputFields); }