Beispiel #1
0
 void control_Edit(object sender, QuestionEventArgs e)
 {
     QuestionForm questionForm = new QuestionForm {QuestionText = e.Question.Text};
     if (questionForm.ShowDialog(this) == DialogResult.OK)
     {
         e.Question.Text = questionForm.QuestionText;
         DataHelper.EditQuestion(e.Question);
         ((QuestionUserControl) sender).Question = e.Question;
     }
 }
Beispiel #2
0
 void control_Delete(object sender, QuestionEventArgs e)
 {
     DataHelper.DeleteQuestion(e.Question);
 }
        public void Ctor_Default()
        {
            var e = new QuestionEventArgs();

            Assert.False(e.Response);
        }