コード例 #1
0
        public void Item_TouchUp(PointF p, string ipAddress)
        {
            //절대 좌표로 변경
            PointF globalPt = new PointF(thisCont.ObjectTouches.MoveCenter.X, thisCont.ObjectTouches.MoveCenter.Y);

            if (IsSelecting == true)
            {
                IsSelecting = false;
                main.Children.Remove(contactsObj);

                if (itemState == 1) //연락처 전송
                {
                    contactsObj.sendContact(ipAddress);
                }
                else if (itemState == 2)
                {
                }
                else
                {
                    ContactsObject cObj = new ContactsObject(window, main, contactsObj.contacts);

                    ElementProperties cObjProp = new ElementProperties();
                    cObjProp.ElementSupport.AddSupportForAll();

                    MTSmoothContainer cObjCont = new MTSmoothContainer(cObj, main, cObjProp);
                    framework.RegisterElement(cObjCont);

                    cObj.setInit(framework, cObjCont);

                    main.Children.Add(cObj);

                    cObjCont.SetPosition(globalPt.X, globalPt.Y, thisAngle + thisCont.RotateFilter.Target, 1.0);
                }
            }
        }
コード例 #2
0
 public void setList()
 {
     foreach (ContactInfo c in list)
     {
         ContactsObject con = new ContactsObject(window, main, c);
         contactsObjList.Add(con);
     }
     ContactslistBox.ItemsSource = contactsObjList;
 }
コード例 #3
0
 public void setList()
 {
     foreach (ContactInfo c in list)
     {
         ContactsObject con = new ContactsObject(window, main, c);
         contactsObjList.Add(con);
     }
     ContactslistBox.ItemsSource = contactsObjList;
 }
コード例 #4
0
        public void Item_TouchDown(PointF p, ContactsObject obj)
        {
            //절대 좌표로 변경
            PointF globalPt = new PointF(thisCont.ObjectTouches.MoveCenter.X, thisCont.ObjectTouches.MoveCenter.Y);

            IsSelecting = true;

            contactsObj = new ContactsObject(window, main, obj.contacts);
            Canvas.SetZIndex(contactsObj, 100000);
            main.Children.Add(contactsObj);

            contactsObj.setPosition(globalPt, thisAngle + thisCont.RotateFilter.Target);
        }
コード例 #5
0
        public void Item_TouchDown(PointF p, ContactsObject obj)
        {
            //절대 좌표로 변경
            PointF globalPt = new PointF(thisCont.ObjectTouches.MoveCenter.X, thisCont.ObjectTouches.MoveCenter.Y);

            IsSelecting = true;

            contactsObj = new ContactsObject(window, main, obj.contacts);
            Canvas.SetZIndex(contactsObj, 100000);
            main.Children.Add(contactsObj);

            contactsObj.setPosition(globalPt, thisAngle + thisCont.RotateFilter.Target);
        }
コード例 #6
0
        public void Item_TouchUp(PointF p, string ipAddress)
        {
            //절대 좌표로 변경
            PointF globalPt = new PointF(thisCont.ObjectTouches.MoveCenter.X, thisCont.ObjectTouches.MoveCenter.Y);

            if (IsSelecting == true)
            {
                IsSelecting = false;
                main.Children.Remove(contactsObj);

                if (itemState == 1) //연락처 전송
                {
                    contactsObj.sendContact(ipAddress);
                }
                else if (itemState == 2)
                {
                }
                else
                {
                    ContactsObject cObj = new ContactsObject(window, main, contactsObj.contacts);
                    
                    ElementProperties cObjProp = new ElementProperties();
                    cObjProp.ElementSupport.AddSupportForAll();

                    MTSmoothContainer cObjCont = new MTSmoothContainer(cObj, main, cObjProp);
                    framework.RegisterElement(cObjCont);

                    cObj.setInit(framework, cObjCont);
                    
                    main.Children.Add(cObj);

                    cObjCont.SetPosition(globalPt.X, globalPt.Y, thisAngle + thisCont.RotateFilter.Target, 1.0);
                }
            }
        }