Exemplo n.º 1
0
 private void LayerObservated_ValueChanged(object obj)
 {
     if (obj is IGraphicsDraw drawer)
     {
         Drawer.PenModelChanged -= ThisPenModelChanged;
         Drawer = drawer;
         UpdataBinding(drawer);
         Drawer.PenModelChanged += ThisPenModelChanged;
         LayerChanged?.Invoke(drawer);
     }
 }
Exemplo n.º 2
0
 public static void OnLayerChanged(LandLayers layer, int?topology = null) => LayerChanged?.Invoke(layer, topology);
Exemplo n.º 3
0
 public void InvalidateLayer(string propertyName)
 {
     LayerChanged?.Invoke(this, propertyName);
 }
 /// <summary>
 /// Method used to raise the event when the layer changed.
 /// </summary>
 protected virtual void OnLayerChanged(Layer currentLayer)
 {
     // Raises event, if subscribers are present.
     LayerChanged?.Invoke(this, new LayerChangedEventArgs(currentLayer));
 }