• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# CardDesign.Gesture_Event_Args类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中CardDesign.Gesture_Event_Args的典型用法代码示例。如果您正苦于以下问题:C# Gesture_Event_Args类的具体用法?C# Gesture_Event_Args怎么用?C# Gesture_Event_Args使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Gesture_Event_Args类属于CardDesign命名空间,在下文中一共展示了Gesture_Event_Args类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Continue

 public override void Continue(object[] senders, My_Point[] myPoints)
 {
     if (myPoints != null && senders != null && checkValid(null, null))
     {
         Gesture_Event_Args gestureEventArgs = new Gesture_Event_Args();
         gestureEventArgs.GesturePoints = myPoints;
         gestureEventArgs.Senders = senders;
         this.Status = GESTURESTATUS.CONTINUE;
         double xAvg = 0;
         double yAvg = 0;
         for (int i = 0; i < 4; i++) {
             xAvg += myPoints[i].CurrentPoint.Position.X - previousPoint[i].X;
             yAvg += myPoints[i].CurrentPoint.Position.Y - previousPoint[i].Y;
             previousPoint[i] = new Point(myPoints[i].CurrentPoint.Position.X, myPoints[i].CurrentPoint.Position.Y);
         }
         xAvg = xAvg / 4;
         yAvg = yAvg / 4;
         vector = new Vector(xAvg, yAvg);
         vectorDistance.X += xAvg;
         vectorDistance.Y += yAvg;
         OnContinued(this, gestureEventArgs);
     }
     if (!checkValid(null,null))
     {
         Fail();
         return;
     }
     if (checkTerminate(null, null))
     {
         Terminate(senders, myPoints);
     }
 }
开发者ID:nius1989,项目名称:CardDesign_TechSnack,代码行数:32,代码来源:Gesture_Event_Grouping.cs


示例2: TerminateGesture

 public override void TerminateGesture(object sender, Gesture_Event_Args gEventArgs)
 {
     News_Card card = gEventArgs.GestureObjects[0] as News_Card;
     Shared_Card_List.UpdateSharedCards();
     gestureControler.Control.CloudControler.UpdateMatrix();
     base.TerminateGesture(sender, gEventArgs);
 }
开发者ID:nius1989,项目名称:CardDataSorting,代码行数:7,代码来源:Gesture_Collaborative_Zoon_Listener.cs


示例3: FailGesture

 public override void FailGesture(object sender, Gesture_Event_Args gEventArgs)
 {
     News_Card card = sender as News_Card;
     Shared_Card_List.UpdateSharedCards();
     gestureControler.Control.CloudControler.UpdateMatrix();
     base.FailGesture(sender, gEventArgs);
 }
开发者ID:nius1989,项目名称:CardDataSorting,代码行数:7,代码来源:Gesture_Collaborative_Zoon_Listener.cs


示例4: TerminateGesture

 public override void TerminateGesture(object sender, Gesture_Event_Args gEventArgs)
 {
     Gesture_Event_Linking link = gEventArgs.Senders[0] as Gesture_Event_Linking;
     Link_List.RemoveLink(link);
     gestureControler.MainWindow.LinkingGestureLayer.Remove(link);
     base.TerminateGesture(sender, gEventArgs);
 }
开发者ID:nius1989,项目名称:CardDesign_TechSnack,代码行数:7,代码来源:Gesture_Cutting_Link_Listener.cs


示例5: FailGesture

 public virtual void FailGesture(object sender, Gesture_Event_Args gEventArgs)
 {
     gestureEvent.Registered -= registerHandler;
     gestureEvent.Continued -= continueHandler;
     gestureEvent.Terminated -= terminateHandler;
     gestureEvent.Failed -= failHandler;
     Record_Helper.PrintRecord(gestureControler.MainWindow, gestureEvent, gEventArgs, GESTURESTATUS.FAIL);
 }
开发者ID:nius1989,项目名称:CardDesign_TechSnack,代码行数:8,代码来源:Gesture_Listener.cs


示例6: TerminateGesture

 public override void TerminateGesture(object sender, Gesture_Event_Args gEventArgs)
 {
     Card c = gEventArgs.GestureObjects[1] as Card;
     Menu_Sort_Box b = gEventArgs.GestureObjects[0] as Menu_Sort_Box;
     Group_List.RemoveCard(b, c);
     gestureControler.Control.MainWindow.SortingGestureLayer.Repaint();
     base.TerminateGesture(sender, gEventArgs);
 }
开发者ID:nius1989,项目名称:CardDataSorting,代码行数:8,代码来源:Gesture_Cutting_Sorting_Listener.cs


示例7: Fail

 public override void Fail()
 {
     Gesture_Event_Args gestureEventArgs = new Gesture_Event_Args();
     gestureEventArgs.GesturePoints = Points;
     gestureEventArgs.GestureObjects = Senders;
     this.Status = GESTURESTATUS.FAIL;
     OnFailed(this, gestureEventArgs);
 }
开发者ID:nius1989,项目名称:CardDataSorting,代码行数:8,代码来源:Gesture_Event_Collaborative_Zoon.cs


示例8: RegisterGesture

 public override void RegisterGesture(object sender, Gesture_Event_Args gEventArgs)
 {
     foreach (Card c in gEventArgs.GestureObjects)
     {
         c.Hightlight();
     }
     gestureControler.Control.MainWindow.GroupingGestureLayer.Add(sender as Gesture_Event_Grouping);
     base.RegisterGesture(sender, gEventArgs);
 }
开发者ID:nius1989,项目名称:CardDataSorting,代码行数:9,代码来源:Gesture_Grouping_Listener.cs


示例9: FailGesture

 public override void FailGesture(object sender, Gesture_Event_Args gEventArgs)
 {
     foreach (Card c in gEventArgs.Senders)
     {
         c.Dehightlight();
     }
     gestureControler.MainWindow.GroupingGestureLayer.Remove(sender as Gesture_Event_Grouping);
     base.FailGesture(sender, gEventArgs);
 }
开发者ID:nius1989,项目名称:CardDesign_TechSnack,代码行数:9,代码来源:Gesture_Grouping_Listener.cs


示例10: TerminateGesture

 public override void TerminateGesture(object sender, Gesture_Event_Args gEventArgs)
 {
     Card c = gEventArgs.GestureObjects[0] as Card;
     double newsize = (sender as Gesture_Event_Emphasizing).GetSize();
     double oldsize = (sender as Gesture_Event_Emphasizing).StartSize;
     if (newsize < oldsize) {
         c.ResetBrightness();
     }
     base.TerminateGesture(sender,gEventArgs);
 }
开发者ID:nius1989,项目名称:CardDataSorting,代码行数:10,代码来源:Gesture_Emphasizing_Listener.cs


示例11: RegisterGesture

 public override void RegisterGesture(object sender, Gesture_Event_Args gEventArgs)
 {
     Card card=gEventArgs.GestureObjects[0] as Card;
     Card card2 = gestureControler.Control.MainWindow.Controlers.CardControler.CopyCard(card);
     if (card2 != null) {
         gEventArgs.GestureObjects[1] = card2;
     }
     lastPosi = gEventArgs.GesturePoints[0].CurrentPoint.Position;
     base.RegisterGesture(sender, gEventArgs);
 }
开发者ID:nius1989,项目名称:CardDataSorting,代码行数:10,代码来源:Gesture_Copying_Listener.cs


示例12: TerminateGesture

 public override void TerminateGesture(object sender, Gesture_Event_Args gEventArgs)
 {
     foreach (Card c in gEventArgs.GestureObjects)
     {
         gestureControler.Control.MainWindow.LinkingGestureLayer.Move(c);
         c.Dehightlight();
     }
     gestureControler.Control.MainWindow.GroupingGestureLayer.Remove(sender as Gesture_Event_Grouping);
     base.TerminateGesture(sender, gEventArgs);
 }
开发者ID:nius1989,项目名称:CardDataSorting,代码行数:10,代码来源:Gesture_Grouping_Listener.cs


示例13: RegisterGesture

 public override void RegisterGesture(object sender, Gesture_Event_Args gEventArgs)
 {
     Menu_Sort_Box b = gEventArgs.GestureObjects[1] as Menu_Sort_Box;
     if (Group_List.CardGroups.ContainsKey(b) && !gestureControler.Control.MainWindow.MenuLayer.IsButtonInOriginPos(b))
     {
         Card[] cards = Group_List.CardGroups[b].ToArray();
         foreach (Card c in cards) { c.Hightlight(Colors.Gold); }
     }
     base.RegisterGesture(sender, gEventArgs);
 }
开发者ID:nius1989,项目名称:CardDataSorting,代码行数:10,代码来源:Gesture_Sorting_Listener.cs


示例14: Terminate

 public override void Terminate(object[] senders, My_Point[] myPoints)
 {
     if (myPoints != null && senders != null)
     {
         Gesture_Event_Args gestureEventArgs = new Gesture_Event_Args();
         gestureEventArgs.GesturePoints = myPoints;
         gestureEventArgs.Senders = senders;
         this.Status = GESTURESTATUS.TERMINATE;
         OnTerminated(this, gestureEventArgs);
     }
 }
开发者ID:nius1989,项目名称:CardDesign_TechSnack,代码行数:11,代码来源:Gesture_Event_Cutting_Link.cs


示例15: FailGesture

        public override void FailGesture(object sender, Gesture_Event_Args gEventArgs)
        {
            Menu_Sort_Box b = gEventArgs.GestureObjects[1] as Menu_Sort_Box;

            if (Group_List.CardGroups.ContainsKey(b))
            {
                Card[] cards = Group_List.CardGroups[b].ToArray();
                foreach (Card c in cards) { c.Dehightlight(); }
            }
            base.FailGesture(sender, gEventArgs);
        }
开发者ID:nius1989,项目名称:CardDataSorting,代码行数:11,代码来源:Gesture_Sorting_Listener.cs


示例16: ContinueGesture

 public override void ContinueGesture(object sender, Gesture_Event_Args gEventArgs)
 {
     if(gEventArgs.GestureObjects.Length>1){
         Card card2 = gEventArgs.GestureObjects[0] as Card;
         card2.MoveCard(gEventArgs.GesturePoints[0].CurrentPoint.Position.X - lastPosi.X,
             gEventArgs.GesturePoints[0].CurrentPoint.Position.Y - lastPosi.Y,
             0);
         lastPosi = gEventArgs.GesturePoints[0].CurrentPoint.Position;
     }
     base.ContinueGesture(sender, gEventArgs);
 }
开发者ID:nius1989,项目名称:CardDataSorting,代码行数:11,代码来源:Gesture_Copying_Listener.cs


示例17: RegisterGesture

 public override void RegisterGesture(object sender, Gesture_Event_Args gEventArgs)
 {
     Card card = gEventArgs.Senders[0] as Card;
     foreach (Card c in Card_List.CardList) {
         if (c != card) {
             if (c.UID == card.UID) {
                 c.Hightlight();
             }
         }
     }
     base.RegisterGesture(sender, gEventArgs);
 }
开发者ID:nius1989,项目名称:CardDesign_TechSnack,代码行数:12,代码来源:Gesture_Showing_Listener.cs


示例18: Register

 public override void Register(object[] senders, My_Point[] myPoints)
 {
     if (myPoints != null && senders != null)
     {
         Points = myPoints;
         Senders = senders;
         Gesture_Event_Args gestureEventArgs = new Gesture_Event_Args();
         gestureEventArgs.GesturePoints = myPoints;
         gestureEventArgs.GestureObjects = senders;
         this.Status = GESTURESTATUS.REGISTER;
         OnRegistered(this, gestureEventArgs);
     }
 }
开发者ID:nius1989,项目名称:CardDataSorting,代码行数:13,代码来源:Gesture_Event_Collaborative_Zoon.cs


示例19: TerminateGesture

        public override void TerminateGesture(object sender, Gesture_Event_Args gEventArgs)
        {
            Gesture_Event_Linking gesture = sender as Gesture_Event_Linking;
            if (gEventArgs.GestureObjects != null && gEventArgs.GestureObjects[1] != null)
            {
                gestureControler.Control.MainWindow.LinkingGestureLayer.Move(gesture);
            }
            else {
                gestureControler.Control.MainWindow.LinkingGestureLayer.Remove(gesture);
            }

            base.TerminateGesture(sender, gEventArgs);
        }
开发者ID:nius1989,项目名称:CardDataSorting,代码行数:13,代码来源:Gesture_Linking_Listener.cs


示例20: ContinueGesture

 public override void ContinueGesture(object sender, Gesture_Event_Args gEventArgs)
 {
     Gesture_Event_Grouping gesture = sender as Gesture_Event_Grouping;
     Card[] cards = gEventArgs.GestureObjects as Card[];
     if (!gesture.IsGrouping())
     {
         foreach (Card c in cards)
         {
             c.MoveCard(gesture.Vector.X, gesture.Vector.Y, 0);
         }
         gestureControler.Control.MainWindow.GroupingGestureLayer.Remove(gesture);
     }
     base.ContinueGesture(sender, gEventArgs);
 }
开发者ID:nius1989,项目名称:CardDataSorting,代码行数:14,代码来源:Gesture_Grouping_Listener.cs



注:本文中的CardDesign.Gesture_Event_Args类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# GameLogic.Snap类代码示例发布时间:2022-05-24
下一篇:
C# Classes.DeviceDescriptor类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap