private void CustomLayerControl_NameChanged(string LayerName) { LayerNameChanged?.Invoke(selectedLayerControl.FormerName, LayerName); selectedLayerControl.FormerName = LayerName; }
private void LayerStackConfigControl_LayerNameChanged(string FormerName, string NewName) { LayerNameChanged?.Invoke(FormerName, NewName); }
/// <summary> /// Method called when <see cref="LayerName"/> has changed, to invoke <see cref="E:SharpMap.Layers.Layer.LayerNameChanged"/> /// </summary> /// <param name="eventArgs">The arguments associated with the event</param> protected virtual void OnLayerNameChanged(EventArgs eventArgs) { LayerNameChanged?.Invoke(this, eventArgs); }