/// <summary>
        /// Initializes a new instance of the <see cref="HeaderBehaviorModel"/> class.
        /// </summary>
        /// <param name="p_BehaviorResize">The behavior resize.</param>
        /// <param name="p_BehaviorButton">The behavior button.</param>
        public HeaderBehaviorModel(ResizeBehaviorModel p_BehaviorResize, ButtonBehaviorModel p_BehaviorButton)
        {
            this.resize = p_BehaviorResize;

            SubModels.Add(resize);
            SubModels.Add(p_BehaviorButton);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="RowHeaderBehaviorModel"/> class.
 /// </summary>
 /// <param name="p_BehaviorResize">The behavior resize.</param>
 /// <param name="p_BehaviorButton">The behavior button.</param>
 /// <param name="p_BehaviorUnselectable">The behavior unselectable.</param>
 public RowHeaderBehaviorModel(ResizeBehaviorModel p_BehaviorResize, ButtonBehaviorModel p_BehaviorButton, UnselectableBehaviorModel p_BehaviorUnselectable)
 {
     resize = p_BehaviorResize;
       SubModels.Add(resize);
       SubModels.Add(p_BehaviorButton);
       SubModels.Add(p_BehaviorUnselectable);
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RowHeaderBehaviorModel"/> class.
 /// </summary>
 /// <param name="p_BehaviorResize">The behavior resize.</param>
 /// <param name="p_BehaviorButton">The behavior button.</param>
 /// <param name="p_BehaviorUnselectable">The behavior unselectable.</param>
 public RowHeaderBehaviorModel(ResizeBehaviorModel p_BehaviorResize, ButtonBehaviorModel p_BehaviorButton, UnselectableBehaviorModel p_BehaviorUnselectable)
 {
     resize = p_BehaviorResize;
     SubModels.Add(resize);
     SubModels.Add(p_BehaviorButton);
     SubModels.Add(p_BehaviorUnselectable);
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="HeaderBehaviorModel"/> class.
        /// </summary>
        /// <param name="p_BehaviorResize">The behavior resize.</param>
        /// <param name="p_BehaviorButton">The behavior button.</param>
        public HeaderBehaviorModel(ResizeBehaviorModel p_BehaviorResize, ButtonBehaviorModel p_BehaviorButton)
        {
            this.resize = p_BehaviorResize;

              SubModels.Add(resize);
              SubModels.Add(p_BehaviorButton);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="ColumnHeaderBehaviorModel"/> class.
        /// </summary>
        /// <param name="p_EnableSort">True to enable sort; otherwise <c>false</c>.</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">The resize behaviour.</param>
        /// <param name="p_BehaviorButton">The button behaviour.</param>
        /// <param name="p_BehaviorUnselectable">The behavior unselectable.</param>
        public ColumnHeaderBehaviorModel(
            bool p_EnableSort, IRangeLoader p_RangeToSort, IRangeLoader p_HeaderRange,
            ResizeBehaviorModel p_BehaviorResize, ButtonBehaviorModel p_BehaviorButton, UnselectableBehaviorModel p_BehaviorUnselectable)
        {
            doEnableSort = p_EnableSort;

            if (p_EnableSort == true)
            {
                headerRange = p_HeaderRange;
                rangeToSort = p_RangeToSort;
            }
            else
            {
                headerRange = null;
                rangeToSort = null;
            }

            resize = p_BehaviorResize;

            SubModels.Add(resize);
            SubModels.Add(p_BehaviorButton);
            SubModels.Add(p_BehaviorUnselectable);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="ColumnHeaderBehaviorModel"/> class.
        /// </summary>
        /// <param name="p_EnableSort">True to enable sort; otherwise <c>false</c>.</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">The resize behaviour.</param>
        /// <param name="p_BehaviorButton">The button behaviour.</param>
        /// <param name="p_BehaviorUnselectable">The behavior unselectable.</param>
        public ColumnHeaderBehaviorModel(
      bool p_EnableSort, IRangeLoader p_RangeToSort, IRangeLoader p_HeaderRange,
      ResizeBehaviorModel p_BehaviorResize, ButtonBehaviorModel p_BehaviorButton, UnselectableBehaviorModel p_BehaviorUnselectable)
        {
            doEnableSort = p_EnableSort;

              if (p_EnableSort == true)
              {
            headerRange = p_HeaderRange;
            rangeToSort = p_RangeToSort;
              }
              else
              {
            headerRange = null;
            rangeToSort = null;
              }

              resize = p_BehaviorResize;

              SubModels.Add(resize);
              SubModels.Add(p_BehaviorButton);
              SubModels.Add(p_BehaviorUnselectable);
        }