Пример #1
0
 public ContentScope(ContentItem newCurrentItem, ContentHelperBase contentHelper)
 {
     this.contentHelper       = contentHelper;
     previousGetter           = contentHelper.PathGetter;
     contentHelper.PathGetter = () => new PathData {
         CurrentItem = newCurrentItem, CurrentPage = newCurrentItem.IsPage ? newCurrentItem : previousGetter().CurrentPage
     };
 }
Пример #2
0
			public ContentScope(ContentItem newCurrentItem, ContentHelperBase contentHelper)
			{
				this.contentHelper = contentHelper;
				previousGetter = contentHelper.Current.PathGetter;
				contentHelper.Current.PathGetter = () => new PathData { CurrentItem = newCurrentItem, CurrentPage = newCurrentItem.IsPage ? newCurrentItem : previousGetter().CurrentPage };
			}
Пример #3
0
			public ContentScope(PathData newCurrentPath, ContentHelperBase contentHelper)
			{
				this.contentHelper = contentHelper;
				previousGetter = contentHelper.Current.PathGetter;
				contentHelper.Current.PathGetter = () => newCurrentPath;
			}
Пример #4
0
 public ContentScope(PathData newCurrentPath, ContentHelperBase contentHelper)
 {
     this.contentHelper = contentHelper;
     previousGetter     = contentHelper.Current.PathGetter;
     contentHelper.Current.PathGetter = () => newCurrentPath;
 }