/// <summary> /// Constructor /// </summary> /// <param name="p_BehaviorResize"></param> /// <param name="p_BehaviorButton"></param> /// <param name="p_BehaviorUnselectable"></param> public RowHeader(Resize p_BehaviorResize, Button p_BehaviorButton, Unselectable p_BehaviorUnselectable) { m_Resize = p_BehaviorResize; SubModels.Add(m_Resize); SubModels.Add(p_BehaviorButton); SubModels.Add(p_BehaviorUnselectable); }
/// <summary> /// Constructor /// </summary> /// <param name="p_EnableSort">True to enable sort, otherwise false.</param> /// <param name="p_RangeToSort">If null and p_EnableSort is true then the range is automatically calculated.</param> /// <param name="p_HeaderRange">If null and p_EnableSort is true then the range is automatically calculated.</param> /// <param name="p_BehaviorResize"></param> /// <param name="p_BehaviorButton"></param> /// <param name="p_BehaviorUnselectable"></param> public ColumnHeader(bool p_EnableSort, IRangeLoader p_RangeToSort, IRangeLoader p_HeaderRange, Resize p_BehaviorResize, Button p_BehaviorButton, Unselectable p_BehaviorUnselectable) { m_bEnableSort = p_EnableSort; if (p_EnableSort) { m_HeaderRange = p_HeaderRange; m_RangeToSort = p_RangeToSort; } else { m_HeaderRange = null; m_RangeToSort = null; } m_Resize = p_BehaviorResize; SubModels.Add(m_Resize); SubModels.Add(p_BehaviorButton); SubModels.Add(p_BehaviorUnselectable); }