Beispiel #1
0
        private void RefreshColumnList()
        {
            LvColumns.ClearItems();
            var columns = _columnCrud.GetAll(null);

            foreach (var column in columns)
            {
                var answers = column.PossibleAnswers.Aggregate("", (current, answer) => current + (answer + ','));
                answers = answers.Substring(0, answers.Length - 1);
                var row = new ListViewItem(new[] { column.Name, answers });
                LvColumns.AddRow(row, column._id);
            }
            ClearColumnPropertyFields();
        }