示例#1
0
文件: Survey.cs 项目: jiqsaw/binrota
 public bool Delete(ArrayList arrQuestions)
 {
     BINROTA.DAL.SurveyQuestion objSurveyQuestion;
     try
     {
         for (int i = 0; i < arrQuestions.Count; i++)
         {
             DeleteSurveyChoices(Convert.ToInt32(arrQuestions[i]));
             objSurveyQuestion = new SurveyQuestion();
             objSurveyQuestion.Load(Convert.ToInt32(arrQuestions[i]));
             objSurveyQuestion.Delete();
         }
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }