Пример #1
0
        private void btnAddTag_Click(object sender, EventArgs e)
        {
            frmTag t = new frmTag(true);

            t.ShowDialog();
            if (t.haveChosen)
            {
                db.AddTagToQuestion(currentQuestion.IdQuestion, t.currentTag.IdTag);
                t.Dispose();
                tagsList               = db.TagsOfAQuestion(currentQuestion.IdQuestion);
                lstTags.DataSource     = tagsList;
                Commons.LastTagsChosen = tagsList;
            }
        }