/// <summary> /// Fires the LayerMoved event. /// </summary> /// <param name="sender">The layer that was moved.</param> /// <param name="e">LayerEventArgs.</param> protected virtual void OnLayerMoved(object sender, LayerMovedEventArgs e) { if (EventsSuspended) { return; } LayerMoved?.Invoke(sender, e); }
/// <summary> /// Fires the LayerMoved event. /// </summary> /// <param name="sender">The layer that was moved.</param> /// <param name="e">LayerEventArgs</param> protected virtual void OnLayerMoved(object sender, LayerMovedEventArgs e) { if (EventsSuspended) { return; } var h = LayerMoved; if (h != null) { h(sender, e); } }
/// <summary> /// Moves the given layer to the new position inside DGV_Selection. /// </summary> private void Layers_LayerMoved(object sender, LayerMovedEventArgs e) { _DGV_Selection.MoveLayer(e.Layer, e.NewPosition); }