nd.commandText = "SELECT * FROM students WHERE ГрупІД =" + st + yacheyka + st + "AND Прізвище =" + st + fam + st;. dataSet1stud1. Clear ();. oleDbDataAdapter1. Fill (this. dataSet1stud1, "students");
} void button2_Click (object sender, System. EventArgs e)
{NRow = this. dataSet1groups2. Tables ["groups"]. NewRow (); ["НазваніеГруппи"] = this. textBox5. Text; ["КодГруппи"] = this. dataSet1groups2. Tables [0]. Rows. Count +1; groups2. Tables ["groups"]. Rows. Add (NRow);. Update (dataSet1groups2, "groups");. oleDbDataAdapter2. Fill (this. dataSet1groups2, 0,0, "groups"); ();. Show ("Дані оновлені");
} void button3_Click (object sender, System. EventArgs e)
{NRow = this. dataSet1confs1. Tables ["conferentions"]. NewRow (); ["Код"] = this. dataSet1confs1. Tables [0]. Rows. Count +1; ["Дата"] = this. dateTimePicker1. Text; confs1. Tables ["conferentions"]. Rows. Add (NRow);. Update (dataSet1confs1, "conferentions");. oleDbDataAdapter3. Fill (this. dataSet1confs1, 0,0, "conferentions"); ();. Show ("Дані оновлені");
} pos1, pos3; void button4_Click (object sender, System. EventArgs e)
{= this. BindingContext [this. dataSet1prep1, "prepods"]. Position; = this. BindingContext [this. dataSet1stud1, "students"]. Position; = this. BindingContext [this. dataSet1confs1, "conferentions"]. Position; NRow = this. dataSet1rab1. Tables ["Raboty"]. NewRow (); ["Тема"] = this. textBoxr1. Text; ["РуководітельІД"] = this.comboBox2. SelectedIndex +1; ["Конфід"] = this.comboBox1. SelectedIndex +1; ["СтудІД"] = this. dataSet1stud1. Tables [0]. Rows [this. BindingContext [this. dataSet1stud1, "students"]. Position] ["Код"]; ["ДатаСдачі"] = this. dateTimePicker2. Text; ["Код"] = this. dataSet1rab1. Tables ["Raboty"]. Rows. Count; rab1. Tables ["Raboty"]. Rows. Add (NRow);. Update (dataSet1rab1, "Raboty");. oleDbDataAdapter4. Fill (this. dataSet1rab1, 0,0, "Raboty"); ();
// this. textBoxr1. Text + = this. dateTimePicker2. Text. TrimEnd ('0 ');. Show ("Дані оновлені");
} void comboBox2_SelectedIndexChanged (object sender, System. EventArgs e)
{. textBoxr1. Text = this. BindingContext [this. dataSet1prep1, "prepods"]. Position. ToString ();
}
}}}:
using System; System. Drawing; System. Collections; System.componentModel; System. Windows. Forms; Kursovoi
{
///
///Summary description for Form3.
/// class Form3: System. Windows. Forms. Form
{System. Windows. Forms. TabControl tabControl1; System. Windows. Forms. TabPage tabPage1; System. Windo...