コード例 #1
0
        private void b_AddStudentForm_Click(object sender, EventArgs e)
        {
            WindowAddStudent addWindow = new WindowAddStudent(this.control);

            addWindow.ShowDialog();
            this.bSource.DataSource = this.control.GetTable("Students");
        }
コード例 #2
0
 private void b_ChangeInfo_Click(object sender, EventArgs e)
 {
     if (this.dataGV.SelectedRows.Count > 0)
     {
         int id_stud = int.Parse(this.dataGV.SelectedRows[0].Cells[0].Value.ToString());
         WindowAddStudent addWindow = new WindowAddStudent(this.control, id_stud);
         addWindow.ShowDialog();
         this.bSource.DataSource = this.control.GetTable("Students");
     }
 }