12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Navigation;
- using System.Windows.Shapes;
- namespace Hammer_store
- {
- /// <summary>
- /// Логика взаимодействия для MainWindow.xaml
- /// </summary>
- public partial class Begin_UserVerification : Window
- {
- public Begin_UserVerification()
- {
- InitializeComponent();
- }
- /* Событие-кнопка: Выход из приложения */
- private void Image_cross_MouseDown(object sender, MouseButtonEventArgs e)
- {
- Application exit = Application.Current;
- exit.Shutdown();
- }
- /* Событие-кнопка: Да */
- private void button_YES_Click(object sender, RoutedEventArgs e)
- {
- Authorization showAuthorization = new Authorization();
- showAuthorization.Show();
- this.Hide();
- }
- /* Событие-кнопка: Нет */
- private void button_NO_Click(object sender, RoutedEventArgs e)
- {
- Registration showRegistration = new Registration();
- showRegistration.Show();
- this.Hide();
- }
- /* Событие-нажатие левой кнопки мыши: Перетаскивание окна */
- private void dragMe(object sender, MouseButtonEventArgs e)
- {
- try
- {
- DragMove();
- } catch (Exception) {
- //сброс
- }
- }
- }
- }
|