Меню авторизации.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 IS31Savelev1
  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 == "111")
  21. {
  22. if (textBox2.Text == "111")
  23. {
  24. Form2 f = new Form2();
  25. this.Hide();
  26. f.Show();
  27. }
  28. if (textBox1.Text == "222")
  29. {
  30. if (textBox2.Text == "222")
  31. {
  32. Form2 f = new Form2();
  33. this.Hide();
  34. f.Show();
  35. }
  36. }
  37. }
  38. }
  39. private void Form1_Load(object sender, EventArgs e)
  40. {
  41. // TODO: данная строка кода позволяет загрузить данные в таблицу "iS31SavelevDataSet.user_import". При необходимости она может быть перемещена или удалена.
  42. this.user_importTableAdapter.Fill(this.iS31SavelevDataSet.user_import);
  43. }
  44. private void textBox1_TextChanged(object sender, EventArgs e)
  45. {
  46. }
  47. private void button2_Click(object sender, EventArgs e)
  48. {
  49. this.Close();
  50. }
  51. }
  52. }