public int GetOrder(IPageStyle style) { PageConfigItem item = GetConfigItem(style); if (item == null || item.Order == 0) { return(Order); } else { return(item.Order); } }
public ControlType GetControl(IPageStyle style) { PageConfigItem item = GetConfigItem(style); if (item == null) { return(Control); } else { return(item.Control); } }
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)); }