KabinetAdmina.xaml.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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.Shapes;
  14. namespace KursachMukha692gr
  15. {
  16. /// <summary>
  17. /// Логика взаимодействия для KabinetAdmina.xaml
  18. /// </summary>
  19. public partial class KabinetAdmina : Window
  20. {
  21. public KabinetAdmina()
  22. {
  23. InitializeComponent();
  24. }
  25. private void Button_Click_raspisaniye(object sender, RoutedEventArgs e)
  26. {
  27. Raspisaniye ras = new Raspisaniye();
  28. ras.Show();
  29. Close();
  30. }
  31. private void Button_Click_spisok_trenerov(object sender, RoutedEventArgs e)
  32. {
  33. SpisokTrenerov a = new SpisokTrenerov();
  34. a.Show();
  35. Close();
  36. }
  37. private void Button_Click_spisok_grupp(object sender, RoutedEventArgs e)
  38. {
  39. SpisokUchenikov uchenikov = new SpisokUchenikov();
  40. uchenikov.Show();
  41. Close();
  42. }
  43. private void Button_Click(object sender, RoutedEventArgs e)
  44. {
  45. if (MessageBox.Show("Вы действительно хотите сменить пользователя ?", "", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
  46. {
  47. Registration reg = new Registration();
  48. reg.Show();
  49. Close();
  50. }
  51. }
  52. private void Button_Click_sorevi(object sender, RoutedEventArgs e)
  53. {
  54. Tournments tournments = new Tournments();
  55. tournments.Show();
  56. Close();
  57. }
  58. private void close_Click(object sender, RoutedEventArgs e)
  59. {
  60. if (MessageBox.Show("Вы действительно хотите выйти ?", "Выход", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
  61. {
  62. Application.Current.Shutdown();
  63. }
  64. }
  65. }
  66. }