Start.cs 850 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 project
  11. {
  12. public partial class Start : Form
  13. {
  14. public Start()
  15. {
  16. InitializeComponent();
  17. }
  18. private void button1_Click(object sender, EventArgs e)
  19. {
  20. this.Hide();
  21. Vhod Vhod = new Vhod();
  22. Vhod.Show();
  23. }
  24. private void button2_Click(object sender, EventArgs e)
  25. {
  26. this.Hide();
  27. Registr Registr = new Registr();
  28. Registr.Show();
  29. }
  30. private void Start_FormClosed(object sender, FormClosedEventArgs e)
  31. {
  32. Application.Exit();
  33. }
  34. }
  35. }