AuthSaleForm.cs 935 B

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