Beispiel #1
0
 public void StartDisplay(TravelOffer lastTravel)
 {
     _currentOffer = lastTravel;
     try
     {
         InitializeComponent();
         InitList();
         var helper = KinectHelper.Instance;
         helper.ReadyEvent += (s, _) => HelperReady();
         GreenScreen.Start(helper.Sensor, false);
         SetNewHat();
         Accessories.Start(helper.Sensor);
         RectNavigationControl.Start(helper.Sensor);
         RectNavigationControl.SwipeLeftEvent  += SwipeLeft;
         RectNavigationControl.SwipeRightEvent += SwipeRight;
         RectNavigationControl.SwipeUpEvent    += SwipeUp;
         RectNavigationControl.SwipeDownEvent  += SwipeDown;
         RectNavigationControl.NoSwipe         += NoSwipe;
         string[] texts = MyTextLoopList.GetNeighbourTexts();
         RectNavigationControl.SetTopText(texts[0]);
         RectNavigationControl.SetBottomText(texts[1]);
         InitGenderDetection();
     }
     catch (Exception exc)
     {
         ExceptionTextBlock.Text = exc.Message + "\r\n" + exc.InnerException + "\r\n" + exc.StackTrace;
     }
 }