/// <summary>新增</summary> private void btnAdd_Click(object sender, EventArgs e) { frmSubject objfrmSubject = new frmSubject(); if (objfrmSubject.ShowDialog() == DialogResult.OK) { this.LoadSubjectList(); } }
/// <summary>显示科目信息窗口</summary> private void ShowSubject() { if (this.dgvSubject.CurrentRow != null) { int iId = int.Parse(this.dgvSubject.CurrentRow.Cells[0].Value.ToString()); frmSubject objfrmSubject = new frmSubject(iId); if (objfrmSubject.ShowDialog() == DialogResult.OK) { this.LoadSubjectList(); } } }