1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using Word = Microsoft.Office.Interop.Word;
- namespace СУБД_Фабрика
- {
- public partial class FormMen : Form
- {
- public FormMen()
- {
- InitializeComponent();
- }
- private void FormMen_Load(object sender, EventArgs e)
- {
- // TODO: This line of code loads data into the 'sewingFactoryMURDataSet1.Izdelia' table. You can move, or remove it, as needed.
- this.izdeliaTableAdapter.Fill(this.sewingFactoryMURDataSet1.Izdelia);
- // TODO: This line of code loads data into the 'sewingFactoryMURDataSet1.Users' table. You can move, or remove it, as needed.
- this.usersTableAdapter.Fill(this.sewingFactoryMURDataSet1.Users);
- BsUsers.Filter = $"IDUser = {FormMain.IDUser}";
- }
- private void BtnProfile_Click(object sender, EventArgs e)
- {
- FormProfile FrmProf = new FormProfile();
- if (FrmProf.ShowDialog() == DialogResult.OK)
- {
- this.usersTableAdapter.Fill(this.sewingFactoryMURDataSet1.Users);
- }
- }
- private void BtnSave_Click(object sender, EventArgs e)
- {
- izdeliaBindingSource.EndEdit();
- this.izdeliaTableAdapter.Update(this.sewingFactoryMURDataSet1.Izdelia);
- }
- private void BtnAll_Click(object sender, EventArgs e)
- {
- }
- }
- }
|