コード例 #1
0
        /// <summary>
        /// 마우스의 포인터 점을 변경합니다.
        /// </summary>
        /// <param name="ob"></param>
        /// <param name="point"></param>
        private void ChangePosition(MouseObject ob, Point point)
        {
            if (Adorner == null)
            {
                Adorner = new MouseAdorner((UIElement)Window.Content);

                FirstPosition.Key  = 0;
                SecondPosition.Key = 1;
            }

            ob.point = point;
            Adorner.AddObject(ob);
        }
コード例 #2
0
        /// <summary>
        /// 마우스의 포인터 점을 변경합니다.
        /// </summary>
        /// <param name="ob"></param>
        /// <param name="point"></param>
        private void ChangePosition(MouseObject ob, Point point)
        {
            if (Adorner == null)
            {
                Adorner = new MouseAdorner((UIElement)Window.Content);

                FirstPosition.Key = 0;
                SecondPosition.Key = 1;
            }

            ob.point = point;
            Adorner.AddObject(ob);
        }
コード例 #3
0
 public void AddObject(MouseObject mo)
 {
     MousePosition[mo.Key] = mo;
     this.InvalidateVisual();
 }
コード例 #4
0
 public void AddObject(MouseObject mo)
 {
     MousePosition[mo.Key] = mo;
     this.InvalidateVisual();
 }