Beispiel #1
0
        public void Showbuton()
        {
            for (int i = 0; i < listQuestion.Count; i++)
            {
                //show text button
                Button bt = new Button();
                bt.Text = (i + 1).ToString();
                //add button to list
                listButtonsQuestion.Add(bt);
                //add button to panel
                pnButton.Controls.Add(bt);
                //add event when click button
                bt.Click += Bt_Click;
                //ad question from to list
                QuestionFrom qs = new QuestionFrom(listQuestion[i], this, listQuestionForms, i);

                listQuestionForms.Add(qs);
            }
        }
Beispiel #2
0
 public void display(QuestionFrom s)
 {
     pnQuestion.Controls.Clear();
     pnQuestion.Controls.Add(s);
 }