日期:2014-05-17 浏览次数:20665 次
// 问题
internal abstract class Question : CompositeControl
{
internal Question(SubjectControl subjectControl, OptionControl optionControl)
{
this.subjectControl = subjectControl;
this.optionControl = optionControl;
}
#region 构建容器界面
protected override void CreateChildControls()
{
this.Controls.Clear();
// 问题内容
this.phSubject = new PlaceHolder();
this.phSubject.ID = "phSubject";
this.phSubject.Controls.Add(this.CreateSubject(this._pqInfo.QuestionInfo.Content));
this.Controls.Add(this.phSubject);
// 选项
this.phOption = new PlaceHolder();
this.phOption.ID = "phOption";
this.phOption.Controls.Add(this.optionControl);
this.Controls.Add(phOption);
this.ChildControlsCreated = true;
}
protected override void Render(HtmlTextWriter w