コード例 #1
0
        public SettingsLoader(IThemeLoader themeLoader,

                              ILocalizationLoader localizationLoader)
        {
            _themeLoader        = themeLoader;
            _localizationLoader = localizationLoader;
        }
コード例 #2
0
ファイル: ThemeCreator.cs プロジェクト: tchigher/plato
 public ThemeCreator(
     ISiteThemeLoader siteThemeLoader,
     IPlatoFileSystem platoFileSystem,
     IThemeUpdater themeUpdater,
     IThemeLoader themeLoader)
 {
     _siteThemeLoader = siteThemeLoader;
     _platoFileSystem = platoFileSystem;
     _themeUpdater    = themeUpdater;
     _themeLoader     = themeLoader;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ThemeLoaderTest"/> class.
 /// </summary>
 /// <param name="fixture"><see cref="ThemeLoaderFixture"/> instance.</param>
 public ThemeLoaderTest(ThemeLoaderFixture fixture)
 {
     this._defaultThemeName = fixture.DefaultThemeName;
     this._baseUrl          = fixture.BaseUrl;
     this._bastPath         = fixture.BasePath;
     this._authors          = fixture.Authors;
     this._feedTypes        = fixture.FeedTypes;
     this._settings         = fixture.WebAppSettings;
     this._fileHelper       = fixture.FileHelper;
     this._env         = fixture.ApplicationEnvironment;
     this._themeLoader = fixture.ThemeLoader;
 }
コード例 #4
0
ファイル: AdminViewProvider.cs プロジェクト: mrs2020/Plato
        public AdminViewProvider(
            IHtmlLocalizer htmlLocalizer,
            IStringLocalizer stringLocalizer,
            IThemeLoader themeLoader,
            ISiteThemeLoader siteThemeLoader,
            ISiteThemeFileManager siteThemeFileManager)
        {
            _themeLoader          = themeLoader;
            _siteThemeLoader      = siteThemeLoader;
            _siteThemeFileManager = siteThemeFileManager;

            T = htmlLocalizer;
            S = stringLocalizer;
        }
コード例 #5
0
 public void SetThemeLoader(IThemeLoader loader)
 {
     _themeFileManager.SetThemeLoader(loader);
 }
コード例 #6
0
 public DummySiteThemeLoader(IThemeLoader themeLoader)
 {
     _themeLoader = themeLoader;
 }
コード例 #7
0
ファイル: ThemeLoader.cs プロジェクト: akatovalex/devexpjuly
 private ThemeLoader()
 {
     platformLoader = DependencyService.Get <IThemeLoader>();
     ThemeManager.AddThemeChangedHandler(this);
 }
コード例 #8
0
 public ThemePersistence(IThemeLoader themeLoader)
 {
     _themeLoader = themeLoader;
 }
コード例 #9
0
 public void SetThemeLoader(IThemeLoader loader)
 {
     _themeLoader = loader;
 }