//addquestion button public void AddQuestion_Click(object sender, EventArgs e) { AddQuestionPanel AddQuestionpanel = new AddQuestionPanel(bc, index2); bc.qlc.AddQuestionpanel(index2); }
// Sets contentPanel public void AddQuestionpanel(int id) { AddQuestionPanel add = new AddQuestionPanel(bc, id); bc.refreshPanel(add.getPanel()); }