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;
- namespace KafeKazarin03
- {
- public partial class Form5 : Form
- {
- public Form5()
- {
- InitializeComponent();
- }
- private void employeesBindingNavigatorSaveItem_Click(object sender, EventArgs e)
- {
- this.Validate();
- this.employeesBindingSource.EndEdit();
- this.tableAdapterManager.UpdateAll(this.kazarinKafeDataSet);
- }
- private void Form5_Load(object sender, EventArgs e)
- {
- // TODO: данная строка кода позволяет загрузить данные в таблицу "kazarinKafeDataSet.Employees". При необходимости она может быть перемещена или удалена.
- this.employeesTableAdapter.Fill(this.kazarinKafeDataSet.Employees);
- }
- private void button4_Click(object sender, EventArgs e)
- {
- Form2 administrator = new Form2();
- administrator.Show();
- this.Hide();
- }
- private void button2_Click(object sender, EventArgs e)
- {
- this.Validate();
- this.employeesBindingSource.EndEdit();
- this.tableAdapterManager.UpdateAll(this.kazarinKafeDataSet);
- this.Hide();
- }
- }
- }
|