/// <summary>
        /// Initializes a new instance of the MainWindow class.
        /// </summary>
        public MainWindow()
        {
            this.WindowState = WindowState.Maximized;
            InitializeComponent();

            // Anton
            //var faceTrackingViewerBinding = new Binding("Kinect") { Source = sensor };

            positionMotionFilter = new ThreeDAuth.PositionMotionFilter();
            outOfPlaneTimer = new System.Diagnostics.Stopwatch();
            resetButtonTimer = new System.Diagnostics.Stopwatch();
            doneButtonTimer = new System.Diagnostics.Stopwatch();
            MainWindow.instance = this;
        }
        private const long BUTTON_HOLD_CUTOFF = 2000; // ms

        /// <summary>
        /// Initializes a new instance of the MainWindow class.
        /// </summary>
        public MainWindow()
        {
            this.WindowState = WindowState.Maximized;
            InitializeComponent();

            // Anton
            //var faceTrackingViewerBinding = new Binding("Kinect") { Source = sensor };

            positionMotionFilter = new ThreeDAuth.PositionMotionFilter();
            outOfPlaneTimer = new System.Diagnostics.Stopwatch();
            resetButtonTimer = new System.Diagnostics.Stopwatch();
            doneButtonTimer = new System.Diagnostics.Stopwatch();

            State CurrentState = StateMachine.CurrentState; // turn on the state machine
            HandTrackingOptions options = HandTrackingOptionSet.CurrentOptions; // turn on the options
        }