private void menuItem11_Click(object sender, System.EventArgs e) { //radio frmQuestion frmQ = new frmQuestion(panel1, _seq++, QuestionTypes.Text); if (frmQ.ShowDialog(this) == DialogResult.OK) { AddQuestionToTVW(frmQ.Question); } }
private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e) { if (e.Button.Tag.ToString() == "BUILD") { BuildDynCtls(); } else { frmQuestion form = new frmQuestion(panel1, _seq++, QuestionTypes.Text); if (form.ShowDialog(this) == DialogResult.OK) { AddQuestionToTVW(form.Question); } } }