Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        /// <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);
            }
        }
Exemplo n.º 3
0
 /// <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);
 }