コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }