private void continue_Button_Click(object sender, RoutedEventArgs e) { time_end = DateTime.Now; difference = time_end.Subtract(timer); time_stamp = difference.ToString("c"); //this must be switched to input it into the correct id for the math problem Math_Info newMathCalibrate = new Math_Info { solution_calibrate = time_stamp }; Math_Info_Items.Add(newMathCalibrate); mathDB.Math_Information.InsertOnSubmit(newMathCalibrate); this.NavigationService.Navigate(new Uri("/CognitivTest.xaml?mode=calibrate", UriKind.Relative)); }
private void submit_Button_Click(object sender, RoutedEventArgs e) { userSolution = this.Solution.Text; //fetches the users answer time_end = DateTime.Now; //gets the time difference = time_end.Subtract(timer); //gets the time difference for comparison time_stamp = difference.ToString("c"); //and formats is result = userSolution.Equals(mathSolutions[problemNumber]); Math_Info newMathInfo = new Math_Info { solution_time = time_stamp }; //puts the users used time into the database Math_Info_Items.Add(newMathInfo); mathDB.Math_Information.InsertOnSubmit(newMathInfo); //remember this must be switch to id and an update query this.NavigationService.Navigate(new Uri("/ResultPage.xaml?mode=" + mode + "&result=" + result + "&time=" + time_stamp, UriKind.Relative)); }
private void submit_Button_Click(object sender, RoutedEventArgs e) { userSolution = this.Solution.Text; //fetches the users answer time_end = DateTime.Now; //gets the time difference = time_end.Subtract(timer); //gets the time difference for comparison time_stamp = difference.ToString("c"); //and formats is result = userSolution.Equals(mathSolutions[problemNumber]); Math_Info newMathInfo = new Math_Info { solution_time = time_stamp }; //puts the users used time into the database Math_Info_Items.Add(newMathInfo); mathDB.Math_Information.InsertOnSubmit(newMathInfo); //remember this must be switch to id and an update query this.NavigationService.Navigate(new Uri("/ResultPage.xaml?mode=" + mode + "&result=" + result + "&time=" + time_stamp, UriKind.Relative)); }
private void continue_Button_Click(object sender, RoutedEventArgs e) { time_end = DateTime.Now; difference = time_end.Subtract(timer); time_stamp = difference.ToString("c"); //this must be switched to input it into the correct id for the math problem Math_Info newMathCalibrate = new Math_Info { solution_calibrate = time_stamp }; Math_Info_Items.Add(newMathCalibrate); mathDB.Math_Information.InsertOnSubmit(newMathCalibrate); this.NavigationService.Navigate(new Uri("/CognitivTest.xaml?mode=calibrate", UriKind.Relative)); }