Esempio n. 1
0
        public void SendKey(int cellindex)
        {
            FPIAnswer ka = new FPIAnswer();

            ka.Time              = DateTime.Now;
            ka.AnswerIndex       = (int)_currentaparam.num;
            ka.AnswerDescription = _currentaparam.buttondescription;
            ka.SelectedCellIndex = cellindex;
            string celldescription = "d";

            switch (cellindex)
            {
            case 0:
                celldescription = "Нет";
                break;

            case 1:
                celldescription = "Да";
                break;
            }
            cellsparam c = _currentaparam.cellsparams.First(cp => cp.description.Trim() == celldescription);

            ka.SelectedCellDescription       = celldescription;
            ka.SelectedCellButtonDescription = c.buttonsescription;
            _answers.Add(ka);
        }
Esempio n. 2
0
 public void Add(int selectedcellindex, string selectedcelldescription, string selectedcellbuttondescription, int answerindex, string answerdescription)
 {
     FPIAnswer ka = new FPIAnswer();
     ka.Time = DateTime.Now;
     ka.SelectedCellIndex = selectedcellindex;
     ka.SelectedCellDescription = selectedcelldescription;
     ka.SelectedCellButtonDescription = selectedcellbuttondescription;
     ka.AnswerIndex = answerindex;
     ka.AnswerDescription = answerdescription;
     this.Add(ka);
 }
Esempio n. 3
0
        public void Add(int selectedcellindex, string selectedcelldescription, string selectedcellbuttondescription, int answerindex, string answerdescription)
        {
            FPIAnswer ka = new FPIAnswer();

            ka.Time = DateTime.Now;
            ka.SelectedCellIndex             = selectedcellindex;
            ka.SelectedCellDescription       = selectedcelldescription;
            ka.SelectedCellButtonDescription = selectedcellbuttondescription;
            ka.AnswerIndex       = answerindex;
            ka.AnswerDescription = answerdescription;
            this.Add(ka);
        }
Esempio n. 4
0
 public void SendKey(int cellindex)
 {
     FPIAnswer ka = new FPIAnswer();
     ka.Time = DateTime.Now;
     ka.AnswerIndex = (int)_currentaparam.num;
     ka.AnswerDescription = _currentaparam.buttondescription;
     ka.SelectedCellIndex = cellindex;
     string celldescription="d";
     switch (cellindex)
     {
         case 0:
             celldescription="Нет";
             break;
         case 1:
             celldescription = "Да";
             break;
     }
     cellsparam c = _currentaparam.cellsparams.First(cp => cp.description.Trim() == celldescription);
     ka.SelectedCellDescription = celldescription;
     ka.SelectedCellButtonDescription = c.buttonsescription;
     _answers.Add(ka);
 }
Esempio n. 5
0
 public void Add(FPIAnswer Answer)
 {
     _FPIanswers.Add(Answer);
 }
Esempio n. 6
0
 public void Add(FPIAnswer Answer)
 {
     _FPIanswers.Add(Answer);
 }