Exemple #1
0
        public CuteSurvey.SurveyFactory.Component.Question Duplicate(CuteSurvey.SurveyFactory.Component.Question question)
        {
            int key = Save(question);

            if (key > 0)
            {
                question.QuestionID = key;
                return(question);
            }
            else
            {
                return(null);
            }
        }
Exemple #2
0
 public bool Remove(CuteSurvey.SurveyFactory.Component.Question question)
 {
     qust = new Data.Questions(conn);
     return(qust.Remove(question.TemplateID, question.QuestionID));
 }
Exemple #3
0
 public bool AddQuestion(CuteSurvey.SurveyFactory.Component.Question question)
 {
     throw new NotImplementedException();
 }
Exemple #4
0
 public bool Update(CuteSurvey.SurveyFactory.Component.Question question)
 {
     qust = new Data.Questions(conn);
     return(qust.Update(question.TemplateID, question.QuestionID, question.QuestionName, question.Comments, question.Note, question.IsRequired,
                        question.MaxLength, (int)question.SelectionChoice, question.EnableComment, question.PageNo, question.ValidationMessage));
 }