using System.Collections.Generic; namespace Kreta.BusinessLogic.Classes.ExcelHelpers { public class ExcelDataSource { #region Entities public int? LevelIndex { get; set; } public Dictionary> AllMultiLevelColumns { get; set; } public List Columns; public List Rows; public ExcelDataSource(int? levelIndex = null) { LevelIndex = levelIndex; Rows = new List(); Columns = new List(); } public class Row { public Row() { Cells = new List(); LevelIDs = new List(); } public int ID; public List Cells; public List LevelIDs { get; set; } public ExcelDataSource ChildDataSource; public List RowSubItems { get; set; } } public class Column { public int LevelIndex { get; set; } public string Name; public string Value; public ColumnType Type; public ExcelDataSource ComboDataSource; } public enum ColumnType { String, Combo, Checkbox, Formula } #endregion } }