Form1.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 ИС32Осадчий
  11. {
  12. public partial class Form1 : Form
  13. {
  14. public Form1()
  15. {
  16. InitializeComponent();
  17. }
  18. private void button1_Click(object sender, EventArgs e)
  19. {
  20. if (textBox1.Text == "gn0354mbiork@outlook.com")
  21. {
  22. if (textBox2.Text == "uzWC67")
  23. {
  24. Главное_меню f1 = new Главное_меню();
  25. this.Hide();
  26. f1.Show();
  27. }
  28. else if (textBox1.Text == "1o4l05k8dwpv@yahoo.com")
  29. {
  30. if (textBox2.Text == "8ntwUp")
  31. {
  32. Главное_меню f1 = new Главное_меню();
  33. this.Hide();
  34. f1.Show();
  35. }
  36. }
  37. else
  38. MessageBox.Show("Не правильный логин или пароль");
  39. textBox1.Clear();
  40. textBox2.Clear();
  41. }
  42. }
  43. private void button2_Click(object sender, EventArgs e)
  44. {
  45. this.Close();
  46. MessageBox.Show("До свидания!!!");
  47. }
  48. }
  49. }