Form6.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 KafeKazarin03
  11. {
  12. public partial class Form6 : Form
  13. {
  14. public Form6()
  15. {
  16. InitializeComponent();
  17. }
  18. private void Form6_Load(object sender, EventArgs e)
  19. {
  20. // TODO: данная строка кода позволяет загрузить данные в таблицу "kazarinKafeDataSet.Employees". При необходимости она может быть перемещена или удалена.
  21. this.employeesTableAdapter.Fill(this.kazarinKafeDataSet.Employees);
  22. employeesBindingSource.AddNew();
  23. }
  24. private void button1_Click(object sender, EventArgs e)
  25. {
  26. this.Validate();
  27. this.employeesBindingSource.EndEdit();
  28. this.tableAdapterManager.UpdateAll(this.kazarinKafeDataSet);
  29. Form2 administrator = new Form2();
  30. administrator.Show();
  31. this.Hide();
  32. }
  33. private void button4_Click(object sender, EventArgs e)
  34. {
  35. Form2 administrator = new Form2();
  36. administrator.Show();
  37. this.Hide();
  38. }
  39. }
  40. }