示例#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);
        }
示例#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);
 }
示例#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);
        }
示例#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);
 }
示例#5
0
 public void Add(LAnswer Answer)
 {
     _Lanswers.Add(Answer);
 }
示例#6
0
 public void Add(LAnswer Answer)
 {
     _Lanswers.Add(Answer);
 }