主窗体:
objFrmStudentDetail = new frmStudentDetail(objStudent, actionFlag);
DialogResult result= objFrmStudentDetail.ShowDialog();
if (result == DialogResult.OK)
{
LoadData();
}
子窗体:FrmStudentDetail
this.DialogResult = DialogResult.OK;
this.Close();