Exemplo n.º 1
0
        protected void rptQuestion_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            VacancyKillerQuestionDTO dto;
            VacancyKillerQuestionDAO dao = new VacancyKillerQuestionDAO();
            String element = e.CommandName.ToString();

            if (element.Equals("question"))
            {
                dto = dao.find(e.CommandArgument.ToString(), getVacancyNumber());
                presenter.setKillerQuestionDto(dto);
                presenter.updateQuestionView();
            }
        }
 public void doResetQuestion()
 {
     if (isMinimumValid())
     {
         VacancyKillerQuestionDAO vacancyDao = new VacancyKillerQuestionDAO();
         VacancyKillerQuestionDTO vacancyInfoDto = vacancyDao.find(view.getQuestion(), view.getVacancyNumber());
         setKillerQuestionDto(vacancyInfoDto);
         view.showFeedback("Fields are reset.");
     }
     else
     {
         view.showFeedback("Error Field vlaues are not valid");
     }
 }