protected internal ReportThemaItemWrapper(IThemaItem item, IThemaWrapper wrapper) : base(item, wrapper) { }
public static IThemaItemWrapper Wrap(IThemaItem item, IThemaWrapper wrapper) { IThemaItemWrapper result = null; if (item is IReportThemaItem) { result = new ReportThemaItemWrapper(item, wrapper); } else if (item is IFormThemaItem) { result = new FormThemaItemWrapper(item, wrapper); } else { result = new ThemaItemWrapper(item, wrapper); } result.AccomodateContext(); return result; }
public IThemaWrapper GetWrap(WrapContext context = null) { return _wrap ?? (_wrap = new ThemaWrapperFactory(Target.Factory, Usr).WrapThema(Target.Code, context ?? Group.Tree.Context)); }
protected ThemaItemWrapper(IThemaItem item, IThemaWrapper wrapper) { Item = item; ThemaWrapper = wrapper; Context = wrapper.Context.GetChild(); }