private void BtnAdd_Click(object sender, EventArgs e) { var f = new frmQTHTChiTiet(student.IDStudent, pathHistoryDataFile); if (f.ShowDialog() == DialogResult.OK) { updateData(); } }
private void BtnEdit_Click(object sender, EventArgs e) { var history = bdsQTHT.Current as HistoryLearning; if (history != null) { var f = new frmQTHTChiTiet(student.IDStudent, pathHistoryDataFile, history); if (f.ShowDialog() == DialogResult.OK) { updateData(); } } }