namespace COP.Info { public class ExcelTableInfo { public string? FilePath { get; set; } = string.Empty; public string? DocumentTitle { get; set; } = string.Empty; public List? Data { get; set; } = new(); public Dictionary, List)> Properties = new(); public ExcelTableInfo(string filePath, string documentTitle, List data, Dictionary, List)>? properties) { FilePath = filePath; DocumentTitle = documentTitle; Data = data; Properties = properties; } public void addDictionary(string name, string property, int height) { if (Properties.ContainsKey(name)) { Properties[name].Item1.Add(property); Properties[name].Item2.Add(height); } else { Properties.Add(name, (new List(), new List())); Properties[name].Item1.Add(property); Properties[name].Item2.Add(height); } } public void addDictionaryAlone(string item, int height) { Properties.Add(item, (new List(), new List())); Properties[item].Item1.Add(item); Properties[item].Item2.Add(height); } /*public string FilePath { get; set; } = string.Empty; public string DocumentTitle { get; set; } = string.Empty; public List MergeInfo; public List? HeaderTitles; public List? Data; public Dictionary, List)> Headers { get; set; } public void addDictionary(string name, string header, int height) { if (headers.ContainsKey(name)) { headers[name].Item1.Add(header); headers[name].Item2.Add(height); } else { headers.Add(name, (new List(), new List())); headers[name].Item1.Add(header); headers[name].Item2.Add(height); } } public void addDictionaryAlone(string header, int height) { headers.Add(header, (new List(), new List())); headers[header].Item1.Add(header); headers[header].Item2.Add(height); } public ExcelTableInfo(string filePath, string documentTitle, List mergeInfo, List headerTitles, List data) { FilePath = filePath; DocumentTitle = documentTitle; MergeInfo = mergeInfo; HeaderTitles = headerTitles; Data = data; }*/ } }