Form1.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. using System.Data.SqlClient;
  11. namespace YurevichIS31_Stroymaterialy
  12. {
  13. public partial class auth : Form
  14. {
  15. public auth()
  16. {
  17. InitializeComponent();
  18. }
  19. private void infbutton_Click(object sender, EventArgs e)
  20. {
  21. MessageBox.Show("Приложение разработано для магазина строительных материалов в Сыктывкаре\nВерсия приложения 1.0");
  22. }
  23. private void authbutton_Click(object sender, EventArgs e)
  24. {
  25. if (logintextbox.Text == "admin" && passwordtextbox.Text == "123")
  26. {
  27. admform form = new admform();
  28. form.Show();
  29. this.Hide();
  30. }
  31. else
  32. {
  33. MessageBox.Show("Логин или пароль введен неверно");
  34. }
  35. }
  36. private void exitbutton_Click(object sender, EventArgs e)
  37. {
  38. this.Close();
  39. }
  40. }
  41. }