Exemplo n.º 1
0
 private void ItemLayerSelected(object sender, LayerSelectedEventArgs e)
 {
     if (e.IsSelected)
     {
         SelectedLayer = e.Layer;
     }
 }
Exemplo n.º 2
0
 private void CollectionLayerSelected(object sender, LayerSelectedEventArgs e)
 {
     OnLayerSelected(e.Layer, e.IsSelected);
 }
Exemplo n.º 3
0
 private void MapFrame_LayerSelected(object sender, DotSpatial.Symbology.LayerSelectedEventArgs e)
 {
     LayerSelected();
 }
Exemplo n.º 4
0
 private void Layers_LayerSelected(object sender, LayerSelectedEventArgs e)
 {
     SetActiveLayer(e.Layer);
 }
Exemplo n.º 5
0
        private void MapFrame_LayerSelected(object sender, LayerSelectedEventArgs e)
        {
            if (e.IsSelected == false && e.Layer == _activeLayer)
            {
                if (_moveVertexFunction != null) { _moveVertexFunction.DeselectFeature(); }
                return;
            }
            IFeatureLayer fl = e.Layer as IFeatureLayer;
            _activeLayer = null;
            if (fl == null) { return; }
            _activeLayer = fl;

            if (_moveVertexFunction != null)
            {
                UpdateMoveVertexFunctionLayer();
            }
            else if (_addShapeFunction != null)
            {
                UpdateAddShapeFunctionLayer();
            }
        }
Exemplo n.º 6
0
 void MapFrame_LayerSelected(object sender, DotSpatial.Symbology.LayerSelectedEventArgs e)
 {
     UpdateStatusPanel();
 }
Exemplo n.º 7
0
 private void LayersLayerSelected(object sender, LayerSelectedEventArgs e)
 {
     LegendBox lb = BoxFromItem(e.Layer);
     if (lb == null) return;
     if (e.IsSelected)
     {
         _selection.Add(lb);
     }
     else
     {
         if (_selection.Contains(lb)) _selection.Remove(lb);
     }
 }
 void MapFrame_LayerSelected(object sender, LayerSelectedEventArgs e)
 {
     UpdateStatus();
 }
Exemplo n.º 9
0
 private void collection_LayerSelected(object sender, LayerSelectedEventArgs e)
 {
     OnLayerSelected(e.Layer, e.IsSelected);
 }
Exemplo n.º 10
0
 private void LayersLayerSelected(object sender, LayerSelectedEventArgs e)
 {
     if (e.IsSelected)
     {
         _selection.Add(e.Layer);
     }
     else
     {
         _selection.Remove(e.Layer);
     }
 }
Exemplo n.º 11
0
 private void MapFrame_LayerSelected(object sender, LayerSelectedEventArgs e)
 {
     Debug.WriteLine("Layer Selected");
     OnMapPropertyChanged();
 }