Begin_UserVerification.xaml.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 Hammer_store
  16. {
  17. /// <summary>
  18. /// Логика взаимодействия для MainWindow.xaml
  19. /// </summary>
  20. public partial class Begin_UserVerification : Window
  21. {
  22. public Begin_UserVerification()
  23. {
  24. InitializeComponent();
  25. }
  26. /* Событие-кнопка: Выход из приложения */
  27. private void Image_cross_MouseDown(object sender, MouseButtonEventArgs e)
  28. {
  29. Application exit = Application.Current;
  30. exit.Shutdown();
  31. }
  32. /* Событие-кнопка: Да */
  33. private void button_YES_Click(object sender, RoutedEventArgs e)
  34. {
  35. Authorization showAuthorization = new Authorization();
  36. showAuthorization.Show();
  37. this.Hide();
  38. }
  39. /* Событие-кнопка: Нет */
  40. private void button_NO_Click(object sender, RoutedEventArgs e)
  41. {
  42. Registration showRegistration = new Registration();
  43. showRegistration.Show();
  44. this.Hide();
  45. }
  46. /* Событие-нажатие левой кнопки мыши: Перетаскивание окна */
  47. private void dragMe(object sender, MouseButtonEventArgs e)
  48. {
  49. try
  50. {
  51. DragMove();
  52. } catch (Exception) {
  53. //сброс
  54. }
  55. }
  56. }
  57. }