private void btnEditProblem_Click(object sender, EventArgs e) { if (CurSelProblemWithTN == null) { MessageBox.Show(this.tipSelProblem); return; } EditProblem editProblem = new EditProblem(this.EditProblem); ProblemEidtForm problemEidtForm = new ProblemEidtForm(this.CurSelProblemWithTN, this.IKnowltAndProblemFormReq, editProblem); problemEidtForm.ShowDialog(); }
//================试题操作相关 private void btnAddProblem_Click(object sender, EventArgs e) { if (this.CurSelKnol == null) { MessageBox.Show("需要先选中知识点"); return; } AddProblem addProblem = new AddProblem(this.AddProblem); ProblemEidtForm problemEidtForm = new ProblemEidtForm(this.CurSelKnol.Id, this.IKnowltAndProblemFormReq, addProblem); problemEidtForm.ShowDialog(); }