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); }
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); }
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); }
public void Add(LAnswer Answer) { _Lanswers.Add(Answer); }