AdminAuthForm.cs 883 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace BeautySaloon
  11. {
  12. public partial class AdminAuthForm : Form
  13. {
  14. public AdminAuthForm()
  15. {
  16. InitializeComponent();
  17. }
  18. private void AuthButton_Click(object sender, EventArgs e)
  19. {
  20. if (AuthBox.Text == "0000")
  21. {
  22. AdminForm form = new AdminForm();
  23. form.Show();
  24. this.Close();
  25. }
  26. else
  27. {
  28. MessageBox.Show("Пароль введен неверно!");
  29. AuthForm form = new AuthForm();
  30. form.Show();
  31. this.Close();
  32. }
  33. }
  34. }
  35. }