public Task <CrudType> HandlePaneAsync(Type pane, FormEditContext editContext, ButtonContext buttonContext, CrudType?defaultCrudType) { var args = new PaneEventArgs(pane, _tcs.Task, editContext, buttonContext, defaultCrudType); OnPaneRequested?.Invoke(null, args); return(_tcs.Task); }
private void onPaneChanged(PaneEventArgs obj) { btnPointer.IsEnabled = true; if (obj.IncomingPane == null || !(obj.IncomingPane is IMapPane)) { btnPointer.IsEnabled = false; } }
private void OnActivePaneChanged(PaneEventArgs obj) { System.Diagnostics.Debug.WriteLine("Enter OnActivePaneInitialize Event"); if (obj.IncomingPane == null) return; System.Diagnostics.Debug.WriteLine("Incoming is not null"); if (obj.IncomingPane is IMapPane) { System.Diagnostics.Debug.WriteLine("Incoming is a MapPane"); GetLayersInMap(); } }
private void OnActivePaneChanged(PaneEventArgs obj) { Pane pane = obj.IncomingPane; if (pane != null) { IMapPane mapPane = pane as IMapPane; if (mapPane != null) IsCameraEnabled = true; else IsCameraEnabled = false; } else IsCameraEnabled = false; }
private void OnActivePaneChanged(PaneEventArgs args) { // get new feature layer list SelectedFeatureDataTable = null; ChartResult = new KeyValuePair <string, int> [0]; FeatureLayers.Clear(); var mapView = MapView.Active; if (mapView == null) { _mapViewNotInitialized = true; return; } GetFeatureLayers(); }
private void OnActivePaneChanged(PaneEventArgs obj) { Pane pane = obj.IncomingPane; if (pane != null) { IMapPane mapPane = pane as IMapPane; if (mapPane != null) { IsCameraEnabled = true; } else { IsCameraEnabled = false; } } else { IsCameraEnabled = false; } }
private void OnActivePaneChanged(PaneEventArgs args) { System.Diagnostics.Debug.WriteLine("OnActivePaneChanged"); //Get feature layers from the active map view. GetFeatureLayers(MapView.Active); }
private void OnActivePaneChanged(PaneEventArgs args) { // get new feature layer list SelectedFeatureDataTable = null; ChartResult = new KeyValuePair<string, int>[0]; FeatureLayers.Clear(); var mapView = MapView.Active; if (mapView == null) { _mapViewNotInitialized = true; return; } GetFeatureLayers(); }