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