public MainWindow()
        {
            InitializeComponent();
            //PropertyChanged += MainWindow_PropertyChanged;
            // use the window object as the view model in this simple example
            this.DataContext = this;

            m_timer = new System.Timers.Timer(1000);
            m_timer.Elapsed += M_timer_Elapsed;
            m_countdown = INITIAL_COUNTDOWN;
            CountdownText = string.Format("Time Remaining: {0} Seconds", m_countdown);
            btnCalculateRate.IsEnabled = false;
            m_secondsElapsed = new System.Diagnostics.Stopwatch();

            jadeCalculation = new JadeIcaFacade();

            InitPlotter();
        }
        private void DisposeOfObjects()
        {
            jadeCalculation.Dispose();
            jadeCalculation = null;

            m_colorBitmap = null;

            m_FaceSource.Dispose();
            m_FaceSource = null;

            m_FaceReader.Dispose();
            m_FaceReader = null;

            m_currentTrackedBody = null;

            m_MSFReader.Dispose();
            m_MSFReader = null;
            m_CoordMapper = null;

            m_Sensor.Close();
            m_Sensor = null;
        }