Ejemplo n.º 1
0
 internal void UpdateSelection(ref Rectangle selectionRect)
 {
     // Find controls to select
     for (int i = 0; i < Children.Count; i++)
     {
         if (Children[i] is KeyframePoint p)
         {
             p.IsSelected = p.Bounds.Intersects(ref selectionRect);
         }
     }
     _editor.UpdateTangents();
 }
Ejemplo n.º 2
0
            private void UpdateSelectionRectangle()
            {
                var selectionRect = Rectangle.FromPoints(_leftMouseDownPos, _mousePos);

                // Find controls to select
                for (int i = 0; i < Children.Count; i++)
                {
                    if (Children[i] is KeyframePoint p)
                    {
                        p.IsSelected = p.Bounds.Intersects(ref selectionRect);
                    }
                }

                _editor.UpdateTangents();
            }