Exemplo n.º 1
0
        public void SendKey(int cellindex)
        {
            LAnswer ka = new LAnswer();

            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);
        }
Exemplo n.º 2
0
 public void Add(int selectedcellindex, string selectedcelldescription, string selectedcellbuttondescription, int answerindex, string answerdescription)
 {
     LAnswer ka = new LAnswer();
     ka.Time = DateTime.Now;
     ka.SelectedCellIndex = selectedcellindex;
     ka.SelectedCellDescription = selectedcelldescription;
     ka.SelectedCellButtonDescription = selectedcellbuttondescription;
     ka.AnswerIndex = answerindex;
     ka.AnswerDescription = answerdescription;
     this.Add(ka);
 }
Exemplo n.º 3
0
        public void Add(int selectedcellindex, string selectedcelldescription, string selectedcellbuttondescription, int answerindex, string answerdescription)
        {
            LAnswer ka = new LAnswer();

            ka.Time = DateTime.Now;
            ka.SelectedCellIndex             = selectedcellindex;
            ka.SelectedCellDescription       = selectedcelldescription;
            ka.SelectedCellButtonDescription = selectedcellbuttondescription;
            ka.AnswerIndex       = answerindex;
            ka.AnswerDescription = answerdescription;
            this.Add(ka);
        }
Exemplo n.º 4
0
 public void SendKey(int cellindex)
 {
     LAnswer ka = new LAnswer();
     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);
 }
Exemplo n.º 5
0
 public void Add(LAnswer Answer)
 {
     _Lanswers.Add(Answer);
 }
Exemplo n.º 6
0
 public void Add(LAnswer Answer)
 {
     _Lanswers.Add(Answer);
 }