Example #1
0
        protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e)
        {                            //this might be moved to the event handler for the movement_time.Tick
            stabilityReading.Stop(); //stops the reading from the accelerometer
            timer.Stop();            //stops the timers that handles event changes
            movement_time.Stop();

            base.OnNavigatedFrom(e);

            motionDB.SubmitChanges(); //crashes while trying to submit data
        }
Example #2
0
        protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e)
        {
            base.OnNavigatedFrom(e);

            mathDB.SubmitChanges(); //submits the changes to the database
        }
Example #3
0
        protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e)
        {
            base.OnNavigatedFrom(e);

            cognitiveDB.SubmitChanges();
        }