ResultTestPage.xaml.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Navigation;
  14. using System.Windows.Shapes;
  15. namespace MyTests.Pages
  16. {
  17. public partial class ResultTestPage : Page
  18. {
  19. public ResultTestPage()
  20. {
  21. InitializeComponent();
  22. ResultTB.Text = $"{Session.Points}/{Session.OpenedTest.Questions.Count}";
  23. }
  24. private void AnswersButton_Click(object sender, RoutedEventArgs e)
  25. {
  26. }
  27. private void ExitButton_Click(object sender, RoutedEventArgs e)
  28. {
  29. NavigationService.Navigate(new Pages.TestsCatalog());
  30. }
  31. private void ProfileButton_Click(object sender, RoutedEventArgs e)
  32. {
  33. NavigationService.Navigate(new Pages.ProfilePage( cnt.db.Users.Where(item => item.IdUser == Session.OpenedTest.IdUser).FirstOrDefault()));
  34. }
  35. }
  36. }