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.Shapes; namespace ROGOZ.Windows { /// /// Логика взаимодействия для AccExitWin.xaml /// public partial class AccExitWin : Window { public AccExitWin() { InitializeComponent(); } private void btnClose_Click(object sender, RoutedEventArgs e) { this.Close(); } private void Window_MouseDown(object sender, MouseButtonEventArgs e) { if (e.LeftButton == MouseButtonState.Pressed) { DragMove(); } } private void Button_Click(object sender, RoutedEventArgs e) { this.Close(); } private void Button_Click_1(object sender, RoutedEventArgs e) { //Pages.Authorization authorization = new Pages.Authorization(); //authorization.Show(); //this.Close(); //Application.Current.Shutdown(); Pages.Authorization authorization = new Pages.Authorization(); authorization.Show(); Application.Current.ShutdownMode = ShutdownMode.OnMainWindowClose; } } }