public RowEntity addRow(decimal decimalRank,Question question,bool textBox = false)
        {
            int rank = calcRank(decimalRank);
            createNewRowDefinition();

            if (rank < grid.Children.Count -2)
            {
                clearMyRow(rank);
            }
            RowEntity newRow = new RowEntity(rank, grid, question, textBox);
            rows.Add(newRow);
            return newRow;

        }
Пример #2
0
        private void AnswerSelectionChanged(RowEntity row)
        {

            var selectedAnswer = row.AnswerComboBox.SelectedItem as Answer;
            row.QuestionObject.Value = selectedAnswer;
            // Aktivere jeg nogle nye?
            checkActiveQuestions();
        }