AddComplectation.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 Digital_World_08
  11. {
  12. public partial class AddComplectation : Form
  13. {
  14. public AddComplectation()
  15. {
  16. InitializeComponent();
  17. }
  18. private void componentsBindingNavigatorSaveItem_Click(object sender, EventArgs e)
  19. {
  20. this.Validate();
  21. this.componentsBindingSource.EndEdit();
  22. this.tableAdapterManager.UpdateAll(this.digital_world_8DataSet1);
  23. }
  24. private void AddComplectation_Load(object sender, EventArgs e)
  25. {
  26. // TODO: данная строка кода позволяет загрузить данные в таблицу "digital_world_8DataSet1.Components". При необходимости она может быть перемещена или удалена.
  27. this.componentsTableAdapter.Fill(this.digital_world_8DataSet1.Components);
  28. componentsBindingSource.AddNew();
  29. }
  30. private void button1_Click(object sender, EventArgs e)
  31. {
  32. this.Validate();
  33. this.componentsBindingSource.EndEdit();
  34. this.tableAdapterManager.UpdateAll(this.digital_world_8DataSet1);
  35. }
  36. private void button2_Click(object sender, EventArgs e)
  37. {
  38. this.Close();
  39. }
  40. }
  41. }