//================试题操作相关 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(); }
public ProblemEidtForm(string knowlID, IKnowltAndProblemFormReq IKnowltAndProblemFormReq, AddProblem addProblem) { InitializeComponent(); this.IKnowltAndProblemFormReq = IKnowltAndProblemFormReq; this.currentSelKnowlID = knowlID; this.addProblem = addProblem; this.iProblemEditFormReq = ImplProblemEditFormReq.NewInstance(); this.initData(); this.initView(); }