public KinectController(MainWindow win)
        {
            mainwin = win;
            ksc = win.ksc;
            ksc.KinectSensorChanged += new DependencyPropertyChangedEventHandler(kscChanged);

            fullthrowtimer.Tick += fullthrowtimer_Tick;
            fullthrowtimer.Interval = TimeSpan.FromSeconds(.2);
        }
        public SelectionGUI(MainWindow w)
        {
            mainwin = w;
            //Retrieve canvas from w
            canvas = w.Content as Canvas;

            //Create custom cursor
            cursorSize = 50;
            cursor = new Image();
            cursor.Source = new BitmapImage(new Uri(@"/KFootball;component/images/hand.png", UriKind.Relative));
            cursor.Height = cursorSize;
            cursor.Width = cursorSize;

            //Button selection is active
            isActive = true;

            //Add cursor to canvas
            canvas.Children.Add(cursor);
            hideCursor();
        }
 public SelectionNavigator(MainWindow w)
 {
     mainwin = w;
 }