/// <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);
        }
Example #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="p_BehaviorResize"></param>
        /// <param name="p_BehaviorButton"></param>
        public Header(Resize p_BehaviorResize, Button p_BehaviorButton)
        {
            m_Resize = p_BehaviorResize;

            SubModels.Add(m_Resize);
            SubModels.Add(p_BehaviorButton);
        }
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);
 }
Example #4
0
 /// <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);
 }
Example #5
0
 void IDecisionTree.AddSubModel(IDomainObject domainObject)
 {
     if (domainObject != null)
     {
         string model = (domainObject as IDomainObjectImpl).FullModelName;
         if (model != "")
         {
             SubModels.Add(domainObject, model);
         }
     }
 }
Example #6
0
        /// <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);
        }
        /// <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);
        }
Example #8
0
 /// <summary>
 ///     Add a subModel
 /// </summary>
 /// <param name="model"></param>
 public void AddSubModel(Model model)
 {
     SubModels.Add(model);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ResizeBehaviorModel"/> class.
 /// </summary>
 /// <param name="p_Mode">The mode.</param>
 public ResizeBehaviorModel(CellResizeModes p_Mode)
 {
     resizeMode = p_Mode;
     SubModels.Add(cursorBehaviorModel);
 }
Example #10
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="p_Mode"></param>
 public Resize(CellResizeMode p_Mode)
 {
     m_ResizeMode = p_Mode;
     SubModels.Add(m_ModelCursor);
 }