12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- 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 SportComplex.Program.Pages
- {
- /// <summary>
- /// Логика взаимодействия для ConnectMode.xaml
- /// </summary>
- public partial class ConnectMode : Page
- {
- public ConnectMode()
- {
- InitializeComponent();
- }
- // Вход за гостя
- private void user_guestBtn_Click(object sender, RoutedEventArgs e)
- {
- GlobalVaribles.type_user = -1;
- GlobalVaribles.name_user = "Гость";
- NavigationService.Navigate(new View());
- }
- // Вход за клиент
- private void user_clientBtn_Click(object sender, RoutedEventArgs e)
- {
- GlobalVaribles.type_user = 2;
- NavigationService.Navigate(new SignInOut());
- }
- // Вход за тренера
- private void user_trainerBtn_Click(object sender, RoutedEventArgs e)
- {
- GlobalVaribles.type_user = 1;
- NavigationService.Navigate(new SignInOut());
- }
- // Вход за админа
- private void user_adminBtn_Click(object sender, RoutedEventArgs e)
- {
- GlobalVaribles.type_user = 0;
- NavigationService.Navigate(new SignInOut());
- }
- }
- }
|