private void Chocie_finish_Click(object sender, EventArgs e) { if (!(CommonCheck.CheckText(Title) && answer != "x")) { MessageBox.Show("请填写完整信息之后再提交!"); return; } string _title = Title.Text; temp = new Question(0, _title, "", answer, "", 'b'); IDataPumpAddquesManager Dpam = new DataPumpAddquesManager(); Dpam.AddNewquestion(temp, where); MessageBox.Show("提交成功"); this.Close(); }
private void Chocie_finish_Click(object sender, EventArgs e) { if (!(CommonCheck.CheckText(Title) && CommonCheck.CheckText(Answer) && CommonCheck.CheckText(Choice_Show))) { MessageBox.Show("请填写完整信息之后再提交!"); return; } string _title = Title.Text; string answer = Answer.Text; /* MessageBox.Show(_title); * MessageBox.Show(body); * MessageBox.Show(answer);*/ temp = new Question(0, _title, body, answer, "", 'c');//用于传输的question类 IDataPumpAddquesManager Dpam = new DataPumpAddquesManager(); Dpam.AddNewquestion(temp, where); MessageBox.Show("提交成功"); this.Close(); }