Form2.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 Form2 : Form
  13. {
  14. public Form2()
  15. {
  16. InitializeComponent();
  17. }
  18. private void button5_Click(object sender, EventArgs e)
  19. {
  20. Form1 f1 = new Form1();
  21. this.Hide();
  22. f1.Show();
  23. MessageBox.Show("Возвращение на авторизацию");
  24. }
  25. private void button1_Click(object sender, EventArgs e)
  26. {
  27. Form3 f1 = new Form3();
  28. this.Hide();
  29. f1.Show();
  30. }
  31. private void button2_Click(object sender, EventArgs e)
  32. {
  33. Form4 f1 = new Form4();
  34. this.Hide();
  35. f1.Show();
  36. }
  37. private void button3_Click(object sender, EventArgs e)
  38. {
  39. Form5 f1 = new Form5();
  40. this.Hide();
  41. f1.Show();
  42. }
  43. private void button4_Click(object sender, EventArgs e)
  44. {
  45. Form6 f1 = new Form6();
  46. this.Hide();
  47. f1.Show();
  48. }
  49. }
  50. }