Exemplo n.º 1
0
        public virtual void OnMouseUp(MouseEventArgs e)
        {
            if (activeHandle != null)
            {
                activeHandle.OnDragEnd(e);
                activeHandle = null;

                if (OnBoxChanged != null)
                {
                    OnBoxChanged(this, null);
                }
            }
        }
Exemplo n.º 2
0
        public virtual void OnMouseDown(MouseEventArgs e)
        {
            foreach (SelectBoxHandle sbh in handles)
            {
                if (sbh.HitTest(e.X, e.Y))
                {
                    activeHandle = sbh;
                }
            }

            if (activeHandle != null)
            {
                activeHandle.OnDragStart(e);
            }
        }
Exemplo n.º 3
0
 public void AddHandle(SelectBoxHandle handle)
 {
     handle.SelectBox = this;
     handles.Add(handle);
 }
Exemplo n.º 4
0
        public virtual void OnMouseUp(MouseEventArgs e)
        {
            if (activeHandle != null)
            {
                activeHandle.OnDragEnd(e);
                activeHandle = null;

                if (OnBoxChanged != null)
                    OnBoxChanged(this, null);
            }
        }
Exemplo n.º 5
0
        public virtual void OnMouseDown(MouseEventArgs e)
        {
            foreach (SelectBoxHandle sbh in handles)
            {
                if (sbh.HitTest(e.X, e.Y))
                {
                    activeHandle = sbh;
                }
            }

            if (activeHandle != null)
            {
                activeHandle.OnDragStart(e);
            }
        }
Exemplo n.º 6
0
 public void AddHandle(SelectBoxHandle handle)
 {
     handle.SelectBox = this;
     handles.Add(handle);
 }