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