Beispiel #1
0
 protected void AppendEvent(PostureEventHandler peh, PostureEventArgs args)
 {
     if (peh != null)
     {
         peh(this, args);
     }
 }
Beispiel #2
0
 private void OnPostureEvent(object sender, PostureEventArgs e)
 {
     //姿势1对应功能,显示项目选择界面
     if (e.EventName == "1")
     {
         if (timer == null)
         {
             //这里显示动画,动画结束时kill进程或者返回!
             Loaded_animation.Visibility = Visibility.Visible;
             timer = new Timer(callBack, null, 2000, 1);
         }
     }
     else
     {
         if (timer != null)
         {
             timer.Dispose();
             timer = null;
             Loaded_animation.Visibility = Visibility.Collapsed;
         }
     }
 }