Exemplo n.º 1
0
        protected override void OnSelected(bool bSelected)
        {
            base.OnSelected(bSelected);

            // 12-16-2011 Scott
            if (Behavior.DrawVideo)
            {
                if (bSelected)
                {
                    if (HandlePoint == null)
                    {
                        HandlePoint handlePoint = Factory.CreateHandlePoint(Drawing, new Point(Coordinates.X + Width / 2, Coordinates.Y - Height / 2));

                        HandlePoint = handlePoint;

                        HandlePoint.Figure = this;

                        Drawing.Add(HandlePoint);
                    }

                    HandlePoint.Selected = true;
                }
                else
                {
                    if (HandlePoint != null)
                    {
                        HandlePoint.Selected = false;
                    }
                }
            }
        }
Exemplo n.º 2
0
        // 12-16-2011 Scott
        public static HandlePoint CreateHandlePoint(Drawing drawing, Point coordinates)
        {
            HandlePoint result = new HandlePoint()
            {
                Drawing = drawing
            };

            result.MoveTo(coordinates);
            return(result);
        }
Exemplo n.º 3
0
        public override void MoveToCore(Point newPosition)
        {
            Center = newPosition;
            base.MoveToCore(newPosition);

            // 12-16-0-2011 Scott
            if (Behavior.DrawVideo)
            {
                if (HandlePoint != null)
                {
                    HandlePoint.MoveTo(new Point(Coordinates.X + Width / 2, Coordinates.Y - Height / 2));
                }
            }
        }