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 IS31KiselevStudent { public partial class Form4 : Form { public Form4() { InitializeComponent(); } private void studentsBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.studentsBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.iS31KiselevStudDataSet); } private void Form4_Load(object sender, EventArgs e) { // TODO: данная строка кода позволяет загрузить данные в таблицу "iS31KiselevStudDataSet.spec". При необходимости она может быть перемещена или удалена. this.specTableAdapter.Fill(this.iS31KiselevStudDataSet.spec); // TODO: данная строка кода позволяет загрузить данные в таблицу "iS31KiselevStudDataSet.Students". При необходимости она может быть перемещена или удалена. this.studentsTableAdapter.Fill(this.iS31KiselevStudDataSet.Students); } private void button1_Click(object sender, EventArgs e) { studentsBindingSource.MoveFirst(); } private void button2_Click(object sender, EventArgs e) { studentsBindingSource.MovePrevious(); } private void button5_Click(object sender, EventArgs e) { studentsBindingSource.AddNew(); } private void button4_Click(object sender, EventArgs e) { studentsBindingSource.MoveLast(); } private void button3_Click(object sender, EventArgs e) { studentsBindingSource.MoveNext(); } private void button6_Click(object sender, EventArgs e) { studentsBindingSource.RemoveCurrent(); } private void button7_Click(object sender, EventArgs e) { this.Validate(); this.studentsBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.iS31KiselevStudDataSet); } private void button8_Click(object sender, EventArgs e) { Form6 form6 = new Form6(); form6.Show(); this.Hide(); } } }