public object Process(object input) { object obj = null; if (input != null) { obj = Activator.CreateInstance(this.targetOutputType); foreach (Tuple <PropertyInfo, DalConversion> tuple in this.converters) { DalConversion item = tuple.Item2; PropertyInfo item2 = tuple.Item1; try { item.SetOutput(obj, item2, input, this.parentInstance); } catch (NullReferenceException) { string arg = (item2 != null) ? item2.Name : "Unknown"; string text = string.Format("Null dalObj {0} reportObj {1}", item.DalPropertyName, arg); ExManagementApplicationLogger.LogEvent(ManagementEventLogConstants.Tuple_FfoReportingTaskFailure, new string[] { text }); } } IPageableObject pageableObject = obj as IPageableObject; if (pageableObject != null && this.pagingIndex != null) { pageableObject.Index = this.pagingIndex.Value; this.pagingIndex++; } } return(obj); }
public void ChangeDirection() { if (direction == PageDirection.Horizontal) { pageInstance = new HorizontalPage(RectTransform, contents, alignment, transition, padding, spacing); } else { pageInstance = new VerticalPage(RectTransform, contents, alignment, transition, padding, spacing); } }
public PageTransitionLinear(List <Frame> contents, IPageableObject pageInstance) { this.Contents = contents; this.PageInstance = pageInstance; }