FormMen.cs 1.6 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. using Word = Microsoft.Office.Interop.Word;
  11. namespace СУБД_Фабрика
  12. {
  13. public partial class FormMen : Form
  14. {
  15. public FormMen()
  16. {
  17. InitializeComponent();
  18. }
  19. private void FormMen_Load(object sender, EventArgs e)
  20. {
  21. // TODO: This line of code loads data into the 'sewingFactoryMURDataSet1.Izdelia' table. You can move, or remove it, as needed.
  22. this.izdeliaTableAdapter.Fill(this.sewingFactoryMURDataSet1.Izdelia);
  23. // TODO: This line of code loads data into the 'sewingFactoryMURDataSet1.Users' table. You can move, or remove it, as needed.
  24. this.usersTableAdapter.Fill(this.sewingFactoryMURDataSet1.Users);
  25. BsUsers.Filter = $"IDUser = {FormMain.IDUser}";
  26. }
  27. private void BtnProfile_Click(object sender, EventArgs e)
  28. {
  29. FormProfile FrmProf = new FormProfile();
  30. if (FrmProf.ShowDialog() == DialogResult.OK)
  31. {
  32. this.usersTableAdapter.Fill(this.sewingFactoryMURDataSet1.Users);
  33. }
  34. }
  35. private void BtnSave_Click(object sender, EventArgs e)
  36. {
  37. izdeliaBindingSource.EndEdit();
  38. this.izdeliaTableAdapter.Update(this.sewingFactoryMURDataSet1.Izdelia);
  39. }
  40. private void BtnAll_Click(object sender, EventArgs e)
  41. {
  42. }
  43. }
  44. }