예제 #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);
     }
 }
예제 #2
0
 public static void OnLayerChanged(LandLayers layer, int?topology = null) => LayerChanged?.Invoke(layer, topology);
예제 #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));
 }