private void ConfirmSectionTitleButton_Click(object sender, EventArgs e) { CreateTemplateSections cts = new CreateTemplateSections(); addToSection input = new addToSection(); input.getLatestTemplateID(); input.addSectionName(sectionTitleTextbox.Text); input.writeNameToDB(); Close(); cts.Show(); }
private void AddCommentButton_Click(object sender, EventArgs e) { CreateNewOptions input = new CreateNewOptions(); input.getLatestsectionID(); input.addOptionTitle(titleTextBox.Text); input.addOptionComment(commentTextBox.Text); input.writeOptionDetailsToDB(); Close(); CreateTemplateSections reOpen = new CreateTemplateSections(); reOpen.Show(); }