Exemplo n.º 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;
     }
 }
Exemplo n.º 2
0
 /*Erst wenn die Scrollanimation der TextLoopList beendet ist, darf die LoopList weiterscrollen (vertical).*/
 private void MyTextLoopList_Scrolled(object sender, EventArgs e)
 {
     _waitForTextList = false;
     if (!_unclicked)
     {
         _doDrag = true;
     }
     string[] texts = MyTextLoopList.GetNeighbourTexts();
     RectNavigationControl.SetTopText(texts[0]);
     RectNavigationControl.SetBottomText(texts[1]);
 }