-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTeacherDiscipline.cs
More file actions
56 lines (47 loc) · 1.8 KB
/
TeacherDiscipline.cs
File metadata and controls
56 lines (47 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using Database.DataSet1TableAdapters;
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 Database
{
public partial class TeacherDiscipline : Form
{
public TeacherDiscipline()
{
InitializeComponent();
}
private void teacherDisciplineBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
this.Validate();
this.teacherDisciplineBindingSource.EndEdit();
this.tableAdapterManager.UpdateAll(this.dataSet1);
}
private void TeacherDiscipline_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'dataSet1.Discipline' table. You can move, or remove it, as needed.
this.disciplineTableAdapter.Fill(this.dataSet1.Discipline);
// TODO: This line of code loads data into the 'dataSet1.Teacher' table. You can move, or remove it, as needed.
this.teacherTableAdapter.Fill(this.dataSet1.Teacher);
// TODO: This line of code loads data into the 'dataSet1.TeacherDiscipline' table. You can move, or remove it, as needed.
this.teacherDisciplineTableAdapter.Fill(this.dataSet1.TeacherDiscipline);
}
private void button1_Click(object sender, EventArgs e)
{
teacherDisciplineBindingSource.AddNew();
}
private void button2_Click(object sender, EventArgs e)
{
teacherDisciplineBindingSource.EndEdit();
teacherDisciplineTableAdapter.Update(dataSet1);
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
}
}
}