Exemplo n.º 1
0
 private void initializeKinect()
 {
     this._CKinect = new CKinect();
     this._CKinect.start();
 }
        void daShowShadow_Completed(object sender, EventArgs e)
        {
            (sender as AnimationClock).Completed -= daShowShadow_Completed;
            this._lShadow = new CShadow(450, 400);
            this._rShadow = new CShadow(600, 400);
            this.lVShadow.DataContext = this._lShadow;
            this.rVShadow.DataContext = this._rShadow;

            int elevationAngle = int.Parse(this.TxtElevationAngle.Text);
            this._cKinect = new CKinect();
            this._cKinect.start();
            this._cKinect.ElevationAngle = elevationAngle;

            TimeBeginPeriod(TimerResolution);
            this.myGameThread = new Thread(this.GameThread);
            myGameThread.SetApartmentState(ApartmentState.STA);
            myGameThread.Start();
        }