//Переход к страницу авторизации
        private void Bt_Login_Click(object sender, RoutedEventArgs e)
        {
            AuthorizationPage ps2 = new AuthorizationPage();

            ps2.Show();
            Hide();
        }
Example #2
0
 //Зарегестрировать пользователя
 public void bt_Regestration_Click(object sender, RoutedEventArgs e)
 {
     if (tb_Surname_of_Staff.Text.ToString() == "" | tb_Name_of_Staff.Text.ToString() == "" | tb_Middle_Name_of_Staff.Text.ToString() == "" | tb_LoginS.Text.ToString() == "" | tb_PasswordS.Text.ToString() == "")
     {
         MessageBox.Show("Поля не заполнены! " +
                         "\n Повторите попытку ввода!", "Сервис+",
                         MessageBoxButton.OK, MessageBoxImage.Warning);
         Registration ps2 = new Registration();
         ps2.Show();
         Hide();
     }
     else
     {
         procedures.Staff_Regestration(tb_Surname_of_Staff.Text.ToString(), tb_Name_of_Staff.Text.ToString(), tb_Middle_Name_of_Staff.Text.ToString(), tb_LoginS.Text.ToString(), tb_PasswordS.Text.ToString());
         AuthorizationPage ps2 = new AuthorizationPage();
         ps2.Show();
         Hide();
     }
 }