Parol.cs 887 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 Brovi12
  11. {
  12. public partial class Parol : Form
  13. {
  14. public Parol()
  15. {
  16. InitializeComponent();
  17. }
  18. private void button1_Click(object sender, EventArgs e)
  19. {
  20. if (textBox1.Text == "0000")
  21. {
  22. Tovari form = new Tovari();
  23. form.Show();
  24. this.Close();
  25. }
  26. else
  27. {
  28. MessageBox.Show("Пароль введен не верно!");
  29. this.Close();
  30. Glmenu form = new Glmenu();
  31. form.Show();
  32. this.Close();
  33. }
  34. }
  35. }
  36. }