nd4; Kursovoi. DataSet1rab dataSet1rab1; Kursovoi. DataSet1prep dataSet1prep1; Kursovoi. DataSet1confs dataSet1confs1; System. Data. OleDb. OleDbCommand oleDbSelectCommand1; Kursovoi. DataSet1groups dataSet1groups2; System. Data. OleDb. OleDbCommand oleDbInsertCommand1; System. Data. OleDb. OleDbDataAdapter oleDbDataAdapter1; System. Data. OleDb. OleDbDataAdapter oleDbDataAdapter5; System. Data. OleDb. OleDbCommand oleDbDeleteCommand5; System. Data. OleDb. OleDbCommand oleDbInsertCommand5; System. Data. OleDb. OleDbCommand oleDbSelectCommand5; System. Data. OleDb. OleDbCommand oleDbUpdateCommand5; System. Windows. Forms. TabPage tabPage5; System. Windows. Forms. TextBox textBox6; System. Windows. Forms. TextBox textBox7; System. Windows. Forms. TextBox textBox8; System. Windows. Forms. Label label14; System. Windows. Forms. Label label15; System. Windows. Forms. Label label16; System. Windows. Forms. Button button5;
///
///Required designer variable.
/// System.componentModel. Container components = null; Form2 ()
{
//
// Required for Windows Form Designer support
// ();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
///
///Clean up any resources being used.
/// override void Dispose (bool disposing)
{(disposing)
{(components! = null)
{. Dispose ();
}
}. Dispose (disposing);
} void button1_Click (object sender, System. EventArgs e)
{= this. BindingContext [this. dataSet1groups2, "groups"]. Position; NRow = this. dataSet1stud1. Tables ["students"]. NewRow (); ["Код"] = this. dataSet1stud1. Tables [0]. Rows. Count +1; ["Прізвище"] = this. textBox1. Text; ["Ім'я"] = this. textBox2. Text; ["По батькові"] = this. textBox3. Text; ["ГрупІД"] = Convert. ToInt32 (this. dataSet1groups2. Tables ["groups"]. Rows [pos] ["КодГруппи"]); stud1. Tables ["students"]. Rows. Add (NRow);. Update (dataSet1stud1, "students");. oleDbDataAdapter1. Fill (this. dataSet1stud1, 0,0, "students"); ();. Show ("Дані оновлені");
} void Form2_Load (object sender, System. EventArgs e)
{. oleDbDataAdapter1. Fill (this. dataSet1stud1, 0,0, "students");. oleDbDataAdapter2. Fill (this. dataSet1groups2, 0,0, "groups");. oleDbDataAdapter3. Fill (this. dataSet1confs1, 0,0, "conferentions");. oleDbDataAdapter4. Fill (this. dataSet1rab1, 0,0, "Raboty");. oleDbDataAdapter5. Fill (this. dataS...