using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Linq; namespace UnvisableComponents { public class ExcelInfo where T: class { private string path; private string title; private List dates; private Dictionary, List)> fields = new Dictionary, List)>(); public string Path { get { return path; } set { path = value; } } public string Title { get { return title; } set { title = value; } } public List Dates { get { return dates; } set { dates = value; } } public Dictionary, List)> Filds { get { return fields; } } public void addDictionary(string name, string field, int height) { if (fields.ContainsKey(name)) { fields[name].Item1.Add(field); fields[name].Item2.Add(height); } else { fields.Add(name, (new List(), new List())); fields[name].Item1.Add(field); fields[name].Item2.Add(height); } } public void addDictionaryAlone(string field, int height) { fields.Add(field, (new List(), new List())); fields[field].Item1.Add(field); fields[field].Item2.Add(height); } public ExcelInfo() { } } }