Beispiel #1
0
        public int GetOrder(IPageStyle style)
        {
            PageConfigItem item = GetConfigItem(style);

            if (item == null || item.Order == 0)
            {
                return(Order);
            }
            else
            {
                return(item.Order);
            }
        }
Beispiel #2
0
        public ControlType GetControl(IPageStyle style)
        {
            PageConfigItem item = GetConfigItem(style);

            if (item == null)
            {
                return(Control);
            }
            else
            {
                return(item.Control);
            }
        }
Beispiel #3
0
        public Tuple <string, string> GetCustomControl(IPageStyle style)
        {
            PageConfigItem item     = GetConfigItem(style);
            string         ctrl     = CustomControl;
            string         ctrlData = CustomControlData;

            if (item != null)
            {
                if (!string.IsNullOrEmpty(item.CustomControl))
                {
                    ctrl = item.CustomControl;
                }
                if (!string.IsNullOrEmpty(item.CustomControlData))
                {
                    ctrlData = item.CustomControlData;
                }
            }
            return(Tuple.Create(ctrl, ctrlData));
        }