123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using System;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Navigation;
- namespace Stankovita.Program.Pages
- {
- /// <summary>
- /// Логика взаимодействия для ConnectMode.xaml
- /// </summary>
- public partial class ConnectMode : Page
- {
- public ConnectMode()
- {
- InitializeComponent();
- }
- // Входа за гостя
- private void UserGuestBtn_Click(object sender, RoutedEventArgs e)
- {
- GlobalVaribles.timeLogin = DateTime.Now;
- GlobalVaribles.typeUser = 0;
- GlobalVaribles.nameUser = "Гость";
- NavigationService.Navigate(new View());
- }
- // Вход за заказчика
- private void UserCustomerBtn_Click(object sender, RoutedEventArgs e)
- {
- GlobalVaribles.typeUser = 1;
- NavigationService.Navigate(new SignInOut());
- }
- // Входа за админа
- private void UserAdminBtn_Click(object sender, RoutedEventArgs e)
- {
- GlobalVaribles.typeUser = 2;
- NavigationService.Navigate(new SignInOut());
- }
-
- }
- }
|