public void setColumnSize(Definition def, String columnName, int size) { String defName = def.GetType().Name; if (!_columnSize.ContainsKey(defName)) { _columnSize[defName] = new Dictionary<string, int>(); } if (_columnSize[defName].ContainsKey(columnName)) _columnSize[defName].Remove(columnName); _columnSize[defName].Add(columnName, size); }
public int getColumnSize(Definition def, String columnName) { String defName = def.GetType().Name; if (_columnSize.ContainsKey(defName)) { if (_columnSize[defName].ContainsKey(columnName)) { return _columnSize[defName][columnName]; } } return 60; }