private void LayerObservated_ValueChanged(object obj) { if (obj is IGraphicsDraw drawer) { Drawer.PenModelChanged -= ThisPenModelChanged; Drawer = drawer; UpdataBinding(drawer); Drawer.PenModelChanged += ThisPenModelChanged; LayerChanged?.Invoke(drawer); } }
public static void OnLayerChanged(LandLayers layer, int?topology = null) => LayerChanged?.Invoke(layer, topology);
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)); }