public Direction(Part p, Dotest parent, int nqn) { InitializeComponent(); part = p; nextQueNo = nqn; _parent = parent; Loaded += Direction_Loaded; }
public QuestionContent(Question q, int qn, Dotest dotest) { InitializeComponent(); string tmpstr = q.options.Replace("||", "|"); string[] options = tmpstr.Split('|'); question = q; parentPage = dotest; record = new Record(); QueNo.Text = qn.ToString(); Option1.Text = options[1]; Option2.Text = options[2]; Option3.Text = options[3]; Option4.Text = options[4]; Option5.Text = options[5]; Loaded += QuestionContent_Loaded; }