public RecycleBinViewModel( INavigationService navigationService, ILanguageService languageService, ISvgIconService svgIconService, IThemeService themeService, IBaseUrlService webviewBaseUrl, IFeedbackService feedbackService, ISettingsService settingsService, ICryptoRandomSource randomSource, IRepositoryStorageService repositoryService) : base(navigationService, languageService, svgIconService, themeService, webviewBaseUrl) { _feedbackService = feedbackService; _settingsService = settingsService; _repositoryService = repositoryService; _noteCryptor = new Cryptor(NoteModel.CryptorPackageName, randomSource); RecycledNotes = new List <NoteViewModel>(); _repositoryService.LoadRepositoryOrDefault(out NoteRepositoryModel noteRepository); Model = noteRepository; // Initialize commands GoBackCommand = new RelayCommand(GoBack); RestoreNoteCommand = new RelayCommand <Guid>(RestoreNote); EmptyRecycleBinCommand = new RelayCommand(EmptyRecycleBin); }
/// <summary> /// Initializes a new instance of the <see cref="PostController"/> class. /// </summary> /// <param name="settings"><see cref="WebAppSettings"/> instance.</param> /// <param name="markdownHelper"><see cref="IMarkdownHelper"/> instance.</param> /// <param name="themeService"><see cref="IThemeService"/> instance.</param> /// <param name="publishService"><see cref="IPublishService"/> instance.</param> public PostController(WebAppSettings settings, IMarkdownHelper markdownHelper, IThemeService themeService, IPublishService publishService) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } this._settings = settings; if (markdownHelper == null) { throw new ArgumentNullException(nameof(markdownHelper)); } this._markdownHelper = markdownHelper; if (themeService == null) { throw new ArgumentNullException(nameof(themeService)); } this._themeService = themeService; if (publishService == null) { throw new ArgumentNullException(nameof(publishService)); } this._publishService = publishService; }
public ThemeController(Func <string, IThemeService> factory, ISettingsManager manager, string pathForMultipart, string pathForFiles) { if (factory == null) { throw new ArgumentNullException("factory"); } if (manager == null) { throw new ArgumentNullException("manager"); } if (string.IsNullOrEmpty(pathForMultipart)) { throw new ArgumentNullException("pathForMultipart"); } if (string.IsNullOrEmpty(pathForFiles)) { throw new ArgumentNullException("pathForFiles"); } var chosenRepository = manager.GetValue( "VirtoCommerce.Content.MainProperties.ThemesRepositoryType", string.Empty); _pathForMultipart = pathForMultipart; _pathForFiles = pathForFiles; var themeService = factory.Invoke(chosenRepository); this._themeService = themeService; }
TreeViewService(IThemeService themeService, IClassificationFormatMapService classificationFormatMapService, [ImportMany] IEnumerable <Lazy <ITreeNodeDataProvider, ITreeNodeDataProviderMetadata> > treeNodeDataProviders) { this.themeService = themeService; this.classificationFormatMapService = classificationFormatMapService; guidToProvider = new Dictionary <Guid, List <Lazy <ITreeNodeDataProvider, ITreeNodeDataProviderMetadata> > >(); InitializeGuidToProvider(treeNodeDataProviders); }
public AdminController(IOrchardServices services, IThemeService themeService, IPreviewTheme previewTheme, IAuthorizer authorizer, INotifier notifier) { Services = services; _themeService = themeService; _previewTheme = previewTheme; T = NullLocalizer.Instance; }
//-------------------------------------------------------------- /// <summary> /// Initializes a new instance of the <see cref="HighlightingManager"/> class. /// </summary> /// <param name="editor">The editor.</param> /// <exception cref="ArgumentNullException"> /// <paramref name="editor"/> is <see langword="null"/>. /// </exception> public HighlightingManager(IEditorService editor) { if (editor == null) throw new ArgumentNullException(nameof(editor)); _themeService = editor.Services.GetInstance<IThemeService>().ThrowIfMissing(); }
/// <summary> /// Constructor. /// </summary> /// <param name="logger">Logger</param> /// <param name="resourceService">Resource service</param> /// <param name="themeService">Theme service</param> /// <param name="fileService">File service</param> /// <param name="appSettingService">App setting service</param> /// <param name="gameSettingService">Game setting service</param> /// <param name="dialogCoordinator">Dialog coordinator</param> public MainModel( ILogger <MainModel> logger, IResourceService resourceService, IThemeService themeService, IFileService fileService, IAppSettingService appSettingService, IGameSettingService gameSettingService, IDialogCoordinator dialogCoordinator) : base(resourceService, themeService) { this.logger = logger; this.fileService = fileService; this.appSettingService = appSettingService; this.gameSettingService = gameSettingService; this.itemHistory = new HistoryCollection <Item>(); this.DialogCoordinator = dialogCoordinator; this.Title = "ERG Launcher"; this.Top = double.NaN; this.Left = double.NaN; this.Height = 450; this.Width = 800; this.WindowState = WindowState.Normal; this.IsEnabledBack = false; this.IsEnabledForward = false; this.Items = new ObservableCollection <Item>(); this.currentBrand = string.Empty; }
private void InitApp() { _theme = (IThemeService)Services.GetService(typeof(IThemeService)); _language = (ILanguageService)Services.GetService(typeof(ILanguageService)); _navigation = (INavigationService)Services.GetService(typeof(INavigationService)); _analytics = (IAnalyticsService)Services.GetService(typeof(IAnalyticsService)); }
public UserController(ApplicationUserManager userManager, IThemeService themeService, IUserService userService, ISchoolService schoolService) { UserManager = userManager; _themeService = themeService; _userService = userService; _schoolService = schoolService; }
public ContentExportImport(IMenuService menuService, IThemeService themeService, IPagesService pagesService, IStoreService storeService) { _menuService = menuService; _storeService = storeService; _themeService = themeService; _pagesService = pagesService; }
ThemeFontSettingsServiceImpl(IThemeService themeService, ThemeFontSettingsSerializer themeFontSettingsSerializer, [ImportMany] Lazy<ThemeFontSettingsDefinition, IThemeFontSettingsDefinitionMetadata>[] themeFontSettingsDefinitions) { this.themeService = themeService; this.themeFontSettingsSerializer = themeFontSettingsSerializer; toMetadata = new Dictionary<string, IThemeFontSettingsDefinitionMetadata>(themeFontSettingsDefinitions.Length, StringComparer.Ordinal); toSettings = new Dictionary<string, ThemeFontSettingsImpl>(StringComparer.Ordinal); foreach (var lz in themeFontSettingsDefinitions) { Debug.Assert(!toMetadata.ContainsKey(lz.Metadata.Name)); toMetadata[lz.Metadata.Name] = lz.Metadata; } themeService.ThemeChangedHighPriority += ThemeService_ThemeChangedHighPriority; foreach (var data in themeFontSettingsSerializer.Deserialize()) { var themeSettings = TryGetSettings(data.Name); if (themeSettings == null) { themeFontSettingsSerializer.Remove(data.Name); continue; } foreach (var fs in data.FontSettings) { var fontSettings = themeSettings.GetSettings(fs.ThemeGuid); if (fontSettings == null) continue; fontSettings.FontFamily = new FontFamily(fs.FontFamily); fontSettings.FontSize = fs.FontSize; } } canSerialize = true; }
/// <summary> /// Initializes a new instance of the <see cref="NoteViewModel"/> class. /// </summary> public NoteViewModel( INavigationService navigationService, ILanguageService languageService, ISvgIconService svgIconService, IThemeService themeService, IBaseUrlService webviewBaseUrl, SearchableHtmlConverter searchableTextConverter, IRepositoryStorageService repositoryService, IFeedbackService feedbackService, ISettingsService settingsService, ICryptor cryptor, SafeListModel safes, NoteModel noteFromRepository) : base(navigationService, languageService, svgIconService, themeService, webviewBaseUrl) { _repositoryService = repositoryService; _feedbackService = feedbackService; _settingsService = settingsService; _searchableTextConverter = searchableTextConverter; _cryptor = cryptor; _safes = safes; MarkSearchableContentAsDirty(); PushNoteToOnlineStorageCommand = new RelayCommand(PushNoteToOnlineStorage); PullNoteFromOnlineStorageCommand = new RelayCommand(PullNoteFromOnlineStorage); GoBackCommand = new RelayCommand(GoBack); Model = noteFromRepository; _unlockedContent = IsInSafe ? UnlockIfSafeOpen(Model.HtmlContent) : Model.HtmlContent; }
public AdminController( IEnumerable<IExtensionDisplayEventHandler> extensionDisplayEventHandlers, IOrchardServices services, IDataMigrationManager dataMigraitonManager, IFeatureManager featureManager, ISiteThemeService siteThemeService, IExtensionManager extensionManager, ShellDescriptor shellDescriptor, IPreviewTheme previewTheme, IThemeService themeService, IReportsCoordinator reportsCoordinator) { Services = services; _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault(); _dataMigrationManager = dataMigraitonManager; _siteThemeService = siteThemeService; _extensionManager = extensionManager; _shellDescriptor = shellDescriptor; _featureManager = featureManager; _previewTheme = previewTheme; _themeService = themeService; _reportsCoordinator = reportsCoordinator; T = NullLocalizer.Instance; Logger = NullLogger.Instance; }
public async Task <IActionResult> Profile( [FromServices] IUserSevice userService, [FromServices] ISemesterService semesterService, [FromServices] IThemeService themeService, [FromServices] ISubjectService subjectService, [FromServices] IGroupService groupService, [FromServices] IMapper mapper) { var user = await userService.GetUserByIdAsync(User.GetId()); if (user == null) { return(NotFound()); } var semester = await semesterService.GetCurrentSemesterAsync(); var themes = await themeService.GetThemesAsync(new ThemeFilter { AuthorId = user.Id }); var model = mapper.Map <UserModel, ProfileViewModel>(user); if (user.GroupId.HasValue) { var subjects = await subjectService.GetSubjectsAsync(user.GroupId.Value, semester.Id); var group = await groupService.GetGroupAsync(user.GroupId.Value); model.Subjects = mapper.Map <ICollection <SubjectModel>, ICollection <SubjectViewModel> >(subjects); model.Group = mapper.Map <GroupModel, GroupViewModel>(group); } model.Themes = mapper.Map <ICollection <ThemeModel>, ICollection <ThemeViewModel> >(themes); return(Ok(model)); }
public AdminController( IEnumerable <IExtensionDisplayEventHandler> extensionDisplayEventHandlers, IOrchardServices services, IDataMigrationManager dataMigraitonManager, IFeatureManager featureManager, ISiteThemeService siteThemeService, IExtensionManager extensionManager, ShellDescriptor shellDescriptor, IPreviewTheme previewTheme, IThemeService themeService, IReportsCoordinator reportsCoordinator, ShellSettings shellSettings) { Services = services; _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault(); _dataMigrationManager = dataMigraitonManager; _siteThemeService = siteThemeService; _extensionManager = extensionManager; _shellDescriptor = shellDescriptor; _featureManager = featureManager; _previewTheme = previewTheme; _themeService = themeService; _reportsCoordinator = reportsCoordinator; _shellSettings = shellSettings; T = NullLocalizer.Instance; Logger = NullLogger.Instance; }
ImageSourceServiceProvider(IThemeService themeService, IBackgroundImageOptionDefinitionService backgroundImageOptionDefinitionService, IBackgroundImageSettingsService backgroundImageSettingsService) { this.themeService = themeService; this.backgroundImageOptionDefinitionService = backgroundImageOptionDefinitionService; this.backgroundImageSettingsService = backgroundImageSettingsService; imageSourceServices = new Dictionary <IBackgroundImageOptionDefinition, IImageSourceService>(); }
public AdminController(UserManager <User> userManager, SignInManager <User> signInManager, IThemeService themeService, IMapper mapper) { _userManager = userManager; _signInManager = signInManager; _themeService = themeService; _mapper = mapper; }
public OpenSafeViewModel( INavigationService navigationService, ILanguageService languageService, ISvgIconService svgIconService, IThemeService themeService, IBaseUrlService webviewBaseUrl, IFeedbackService feedbackService, ICryptoRandomService randomService, ISettingsService settingsService, IRepositoryStorageService repositoryService, Navigation navigationTarget) : base(navigationService, languageService, svgIconService, themeService, webviewBaseUrl) { _feedbackService = feedbackService ?? throw new ArgumentNullException(nameof(feedbackService)); _randomService = randomService; _settingsService = settingsService; _repositoryService = repositoryService; _navigationTarget = navigationTarget; _repositoryService.LoadRepositoryOrDefault(out NoteRepositoryModel noteRepository); Model = noteRepository; GoBackCommand = new RelayCommand(GoBack); CancelCommand = new RelayCommand(Cancel); OkCommand = new RelayCommand(Ok); ResetSafeCommand = new RelayCommand(ResetSafe); }
public CategoryListViewModel(IThemeService themeService, IRssReader rssReader, IAsyncDownloadManager downloadManager, INavigationService navigationService, ILockscreenHelper lockscreen, IDownloadHelper downloadHelper) { _themeService = themeService; _rssReader = rssReader; _downloadManager = downloadManager; _navigationService = navigationService; _lockscreen = lockscreen; _downloadHelper = downloadHelper; AddMorePicturesCommand = Items.CountChanged .Select(_ => Items.Count < imageMetaData.Count()) .ToCommand(); AddMorePicturesCommand .RegisterAsyncTask(value => GetImages((int)value)); FullScreenCommand = new ReactiveCommand(); SetLockScreenCommand = new ReactiveCommand(); SetLockScreenCommand .RegisterAsyncTask(value => SetLockscreen(value as CategoryItem)); DownloadImageCommand = new ReactiveCommand(); DownloadImageCommand .RegisterAsyncTask(value => DownloadImage(value as CategoryItem)); }
public ThemeController(Func<string, IThemeService> factory, ISettingsManager manager, string pathForMultipart, string pathForFiles, string defaultThemePath) { if (factory == null) { throw new ArgumentNullException("factory"); } if (manager == null) { throw new ArgumentNullException("manager"); } if (string.IsNullOrEmpty(pathForMultipart)) throw new ArgumentNullException("pathForMultipart"); if (string.IsNullOrEmpty(pathForFiles)) throw new ArgumentNullException("pathForFiles"); var chosenRepository = manager.GetValue( "VirtoCommerce.Content.MainProperties.ThemesRepositoryType", string.Empty); _pathForMultipart = pathForMultipart; _pathForFiles = pathForFiles; _defaultThemePath = defaultThemePath; var themeService = factory.Invoke(chosenRepository); this._themeService = themeService; }
public MainWindowViewModel( MSBuildProject project, IDialogService <UnsavedChangesDialogViewModel> unsavedChangesDialogService, IOpenFileDialogService openFileDialogService, IThemeService themeService) { _project = project.Project; _propertyManager = new PropertyManager(_project); _unsavedChangesDialogService = unsavedChangesDialogService; _themeService = themeService; ClosingCommand = ReactiveCommand.Create <CancelEventArgs>(OnClosing); SaveCommand = ReactiveCommand.Create( _propertyManager.Save, Observable.FromEventPattern( handler => _propertyManager.IsDirtyChanged += handler, handler => _propertyManager.IsDirtyChanged -= handler) .Select(_ => _propertyManager.IsDirty)); ApplicationPage = new ApplicationPageViewModel(_propertyManager); BuildPage = new BuildPageViewModel(_propertyManager); BuildEventsPage = new BuildEventsPageViewModel(_propertyManager); PackagePage = new PackagePageViewModel(_propertyManager); SigningPage = new SigningPageViewModel(_propertyManager, openFileDialogService); }
public ThemeSwitcherService(IThemeService themeService, IAtomPubService atomPubService, IAppServiceRepository appServiceRepository) { this.appServiceRepository = appServiceRepository; this.atomPubService = atomPubService; ThemeService = themeService; }
public AssetService(IAppServiceRepository svcRepo, IThemeService themeSvc, ILogService logSvc) { AppServiceRepository = svcRepo; ThemeService = themeSvc; LogService = logSvc; Assets = new Collection<Asset>(); }
protected ClassificationFormatMapService(IThemeService themeService, IEditorFormatMapService editorFormatMapService, IEditorFormatDefinitionService editorFormatDefinitionService, IClassificationTypeRegistryService classificationTypeRegistryService) { this.themeService = themeService; this.editorFormatMapService = editorFormatMapService; this.editorFormatDefinitionService = editorFormatDefinitionService; this.classificationTypeRegistryService = classificationTypeRegistryService; toCategoryMap = new Dictionary<IEditorFormatMap, IClassificationFormatMap>(); }
ThemeFontSettingsServiceImpl(IThemeService themeService, ThemeFontSettingsSerializer themeFontSettingsSerializer, [ImportMany] Lazy <ThemeFontSettingsDefinition, IThemeFontSettingsDefinitionMetadata>[] themeFontSettingsDefinitions) { this.themeService = themeService; this.themeFontSettingsSerializer = themeFontSettingsSerializer; toMetadata = new Dictionary <string, IThemeFontSettingsDefinitionMetadata>(themeFontSettingsDefinitions.Length, StringComparer.Ordinal); toSettings = new Dictionary <string, ThemeFontSettingsImpl>(StringComparer.Ordinal); foreach (var lz in themeFontSettingsDefinitions) { Debug.Assert(!toMetadata.ContainsKey(lz.Metadata.Name)); toMetadata[lz.Metadata.Name] = lz.Metadata; } themeService.ThemeChangedHighPriority += ThemeService_ThemeChangedHighPriority; foreach (var data in themeFontSettingsSerializer.Deserialize()) { var themeSettings = TryGetSettings(data.Name); if (themeSettings == null) { themeFontSettingsSerializer.Remove(data.Name); continue; } foreach (var fs in data.FontSettings) { var fontSettings = themeSettings.GetSettings(fs.ThemeGuid); if (fontSettings == null) { continue; } fontSettings.FontFamily = new FontFamily(fs.FontFamily); fontSettings.FontSize = fs.FontSize; } } canSerialize = true; }
ManualModeCommand(IAppService appService, IThemeService themeService, Lazy <IMethodAnnotations> methodAnnotations, Lazy <IUndoCommandService> undoCommandService) : base(appService.DocumentTreeView) { this.appService = appService; this.themeService = themeService; this.methodAnnotations = methodAnnotations; this.undoCommandService = undoCommandService; }
public ReportController(IThemeService themeService, IMessageService messageService, IUserService userService, IMapper mapper) { this.themeService = themeService; this.messageService = messageService; this.userService = userService; this.mapper = mapper; }
public DashboardController(ApplicationUserManager userManager, IUserService userService, IApplicationService appService, IThemeService themeService, ISchoolService schoolService) { UserManager = userManager; _userService = userService; _appService = appService; _themeService = themeService; _schoolService = schoolService; }
TextAppearanceCategoryService(IThemeService themeService, ThemeFontSettingsService themeFontSettingsService, [ImportMany] TextAppearanceCategoryDefinition[] textAppearanceCategoryDefinitions) { themeService.ThemeChangedHighPriority += ThemeService_ThemeChangedHighPriority; categoryToTextAppearanceCategoryDefinition = new Dictionary<string, TextAppearanceCategory>(textAppearanceCategoryDefinitions.Length, StringComparer.Ordinal); foreach (var def in textAppearanceCategoryDefinitions) { Debug.Assert(!categoryToTextAppearanceCategoryDefinition.ContainsKey(def.Category)); categoryToTextAppearanceCategoryDefinition[def.Category] = new TextAppearanceCategory(def, themeFontSettingsService.GetSettings(def.Category)); } }
GlyphTextMarkerService(IThemeService themeService, IViewTagAggregatorFactoryService viewTagAggregatorFactoryService, IEditorFormatMapService editorFormatMapService, [ImportMany] IEnumerable <Lazy <IGlyphTextMarkerMouseProcessorProvider, IGlyphTextMarkerMouseProcessorProviderMetadata> > glyphTextMarkerMouseProcessorProviders) { ThemeService = themeService; ViewTagAggregatorFactoryService = viewTagAggregatorFactoryService; EditorFormatMapService = editorFormatMapService; glyphTextMarkers = new HashSet <IGlyphTextMarkerImpl>(); GlyphTextMarkerMouseProcessorProviders = Orderer.Order(glyphTextMarkerMouseProcessorProviders).ToArray(); }
public TabService(IThemeService themeService, IMenuService menuService, IWpfFocusService wpfFocusService) { themeService.ThemeChanged += ThemeService_ThemeChanged; this.menuService = menuService; this.wpfFocusService = wpfFocusService; this.tabGroupServices = new List <TabGroupService>(); this.selectedIndex = -1; }
public SettingsViewModel( IThemeService themeService, IApplicationInformationService applicationInformationService) { _themeService = themeService; _applicationInformationService = applicationInformationService; _elementTheme = _themeService.CurrentTheme; }
TextEditorFontSettingsService(IThemeService themeService, ITextEditorSettings textEditorSettings, [ImportMany] IEnumerable <Lazy <TextEditorFormatDefinition, ITextEditorFormatDefinitionMetadata> > textEditorFormatDefinitions) { themeService.ThemeChangedHighPriority += ThemeService_ThemeChangedHighPriority; var provider = new TextEditorFontSettingsDictionaryProvider(textEditorSettings, textEditorFormatDefinitions); this.toTextEditorFontSettings = provider.Result; this.defaultTextEditorFontSettings = provider.DefaultSettings; }
public DefaultController( IThemeService themeservice, IUserService service ) { _themeservice = themeservice; _service = service; }
public ThemeSelectionPageViewModel(IThemeService themeService) { _themeService = themeService; var selectedTheme = Themes.FirstOrDefault(x => x.Theme == _themeService.CurrentTheme()); selectedTheme.IsSelected = true; }
public ThemesController(IThemeService themeService, IDataProtectionProvider provider, IOptions <ApplicationSettings> config) { _themeService = themeService; _config = config; _protector = provider.CreateProtector(_config.Value.Cookies.SecureKey); }
public MessageController(IMapper mapper, IMessageService messageService, IThemeService themeService, IConfiguration config) { this.mapper = mapper; this.messageService = messageService; this.themeService = themeService; this.config = config; pageSize = Convert.ToInt32(this.config["Paging:Size"]); }
protected EditorFormatMapService(IThemeService themeService, ITextAppearanceCategoryService textAppearanceCategoryService, IEditorFormatDefinitionService editorFormatDefinitionService) { this.themeService = themeService; this.textAppearanceCategoryService = textAppearanceCategoryService; this.editorFormatDefinitionService = editorFormatDefinitionService; toCategoryMap = new Dictionary<ITextAppearanceCategory, IEditorFormatMap>(); cachedUpdaters = new List<CategoryEditorFormatMapUpdater>(); dispatcher = Dispatcher.CurrentDispatcher; }
public HomeController(UserManager <User> userManager, IMapper mapper, IPostService postService, IThemeService themeService, ICommentService commentService) { _userManager = userManager; _mapper = mapper; _postService = postService; _themeService = themeService; _commentService = commentService; }
public ReadController(IPostService postService, IPostCommentService postCommentService, IAnalyticsService analyticsService, IUserService userService, IThemeService themeService) { _postService = postService; _postCommentService = postCommentService; _analyticsService = analyticsService; _userService = userService; _themeService = themeService; }
/// <summary> /// Initializes a new instance of the <see cref="ThemeServiceTest"/> class. /// </summary> /// <param name="fixture"><see cref="ThemeServiceFixture"/> instance.</param> public ThemeServiceTest(ThemeServiceFixture fixture) { this._defaultThemeName = fixture.DefaultThemeName; this._settings = fixture.WebAppSettings; this._service = fixture.ThemeService; this._routeData = new RouteData(); }
public TestController(ITestService testService, ITestResultService testResultService, IUserService userService, IThemeService themeService, IProfileService profileService) { this.testService = testService; this.testResultService = testResultService; this.userService = userService; this.themeService = themeService; this.profileService = profileService; }
protected ClassificationFormatMapService(IThemeService themeService, IEditorFormatMapService editorFormatMapService, IEditorFormatDefinitionService editorFormatDefinitionService, IClassificationTypeRegistryService classificationTypeRegistryService) { this.themeService = themeService; this.editorFormatMapService = editorFormatMapService; this.editorFormatDefinitionService = editorFormatDefinitionService; this.classificationTypeRegistryService = classificationTypeRegistryService; toCategoryMap = new Dictionary <IEditorFormatMap, IClassificationFormatMap>(); }
public LoockupManagementService(ISpecialityService specialityService, ISpecializationService specializationService, IProfessorProfileService professorProfileService, IGroupService groupService, ISubjectService subjectService, IThemeService themeService) { this.specialityService = specialityService; this.specializationService = specializationService; this.professorProfileService = professorProfileService; this.groupService = groupService; this.subjectService = subjectService; this.themeService = themeService; }
public Upgrade() { siteService = IoC.Resolve<ISiteService>(); userService = IoC.Resolve<IUserService>(); templateService = IoC.Resolve<IThemeService>(); fileService = IoC.Resolve<IFileService>(); this.Load += new EventHandler(Page_Load); }
public AdminController(IUserRepository userRepo, IAtomPubService atompub, IAnnotateService annotate, IAtomEntryRepository atomRepo, AdminService admin, IThemeService theme) { AdminService = admin; UserRepository = userRepo; AtomPubService = atompub; AnnotateService = annotate; AtomEntryRepository = atomRepo; ThemeService = theme; }
public SiteResetTask(IScheduledTaskManager scheduledTaskManager, IClock clock, IRepository<ScheduledTaskRecord> repository, IThemeService themeService, ISiteThemeService siteThemeService){ _scheduledTaskManager = scheduledTaskManager; _clock = clock; _repository = repository; _themeService = themeService; _siteThemeService = siteThemeService; }
public ThemeCommands(IDataMigrationManager dataMigrationManager, ISiteThemeService siteThemeService, IExtensionManager extensionManager, ShellDescriptor shellDescriptor, IThemeService themeService) { _dataMigrationManager = dataMigrationManager; _siteThemeService = siteThemeService; _extensionManager = extensionManager; _shellDescriptor = shellDescriptor; _themeService = themeService; }
public WizardController(IAppServiceRepository svcRepo, IAtomEntryRepository entryRepo, IMediaRepository mediaRepo, IUserRepository userRepo, IThemeService theme, ILogService logger) { AppServiceRepository = svcRepo; MediaRepository = mediaRepo; AtomEntryRepository = entryRepo; UserRepository = userRepo; LogService = logger; ThemeService = theme; }
public Form1(IThemeService themeService, IPaperWallRssParser paperWallRssParser, IImageFilter imageFilter, IAsyncDownloadManager asyncDownloadManager) { this._themeService = themeService; this._paperWallRssParser = paperWallRssParser; this._imageFilter = imageFilter; this._downloadManager = asyncDownloadManager; Init(); DownloadTimer_Tick(this, null); }
public AdminService(IAtomPubService atompub, IAnnotateService anno, IAuthorizeService auth, ILogService logger, IRouteService route, IThemeService themeSvc, IAppServiceRepository svcRepo) { AtomPubService = atompub; AnnotateService = anno; AuthorizeService = auth; RouteService = route; LogService = logger; ThemeService = themeSvc; AppServiceRepository = svcRepo; atompub.SettingEntryLinks += (e) => SetLinks(e); }
public ViewEngineFilter( ViewEngineCollection viewEngines, IThemeService themeService, IExtensionManager extensionManager, IEnumerable<IViewEngineProvider> viewEngineProviders) { _viewEngines = viewEngines; _themeService = themeService; _extensionManager = extensionManager; _viewEngineProviders = viewEngineProviders; Logger = NullLogger.Instance; }
public DashboardManagementService(IAuthorizationService authorizationService, IStudentProfileService studentProfileService, ICurriculumService curriculumService, IStudentThemeService studentThemeService, IEUniversityUow universityUow, ISubjectManagementService subjectManagementService, IGroupService groupService, IThemeService themeService) { this.authorizationService = authorizationService; this.studentProfileService = studentProfileService; this.curriculumService = curriculumService; this.studentThemeService = studentThemeService; this.universityUow = universityUow; this.subjectManagementService = subjectManagementService; this.groupService = groupService; this.themeService = themeService; }
public ThemeStep( IPackagingSourceManager packagingSourceManager, IPackageManager packageManager, IExtensionManager extensionManager, IThemeService themeService, ISiteThemeService siteThemeService, RecipeExecutionLogger logger) : base(logger) { _packagingSourceManager = packagingSourceManager; _packageManager = packageManager; _extensionManager = extensionManager; _themeService = themeService; _siteThemeService = siteThemeService; }
//-------------------------------------------------------------- /// <summary> /// Initializes a new instance of the <see cref="ThemeAwareHighlightingDefinition"/> class. /// </summary> /// <param name="name">The name.</param> /// <param name="themeService">The theme service.</param> /// <exception cref="ArgumentNullException"> /// <paramref name="name"/> or <paramref name="themeService"/> is <see langword="null"/>. /// </exception> /// <exception cref="ArgumentException"> /// <paramref name="name"/> is empty. /// </exception> public ThemeAwareHighlightingDefinition(string name, IThemeService themeService) { if (name == null) throw new ArgumentNullException(nameof(name)); if (name.Length == 0) throw new ArgumentException("Name of syntax highlighting definition must not be empty.", nameof(name)); if (themeService == null) throw new ArgumentNullException(nameof(themeService)); Name = name; _themeService = themeService; _definitionsByTheme = new Dictionary<string, Func<IHighlightingDefinition>>(); _theme = UnsetTheme; }
public AdminController( IEnumerable<Orchard.Modules.Events.IExtensionDisplayEventHandler> extensionDisplayEventHandlers, IOrchardServices services, IModuleService moduleService, IDataMigrationManager dataMigrationManager, IReportsCoordinator reportsCoordinator, IExtensionManager extensionManager, IFeatureManager featureManager, IRecipeHarvester recipeHarvester, IRecipeManager recipeManager, ShellDescriptor shellDescriptor, ShellSettings shellSettings, IShapeFactory shapeFactory, IPackageService packageService, IMimeTypeProvider mimeTypeProvider, ISiteThemeService siteThemeService, IThemeService themeService) { Services = services; _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault(); _moduleService = moduleService; _dataMigrationManager = dataMigrationManager; _reportsCoordinator = reportsCoordinator; _extensionManager = extensionManager; _featureManager = featureManager; _recipeHarvester = recipeHarvester; _recipeManager = recipeManager; _shellDescriptor = shellDescriptor; _shellSettings = shellSettings; Shape = shapeFactory; _packageService = packageService; _mimeTypeProvider = mimeTypeProvider; _siteThemeService = siteThemeService; _themeService = themeService; T = NullLocalizer.Instance; Logger = NullLogger.Instance; _tempPackageStoragePath = new Lazy<string>(() => { var path = HostingEnvironment.MapPath("~/App_Data/Packages"); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } return path; }); }
public Services( IEntryService entryService, IUserService userService, IConfigService configService, IMessageService messageService, ICloudService cloudService, IThemeService themeService) { Entry = entryService; User = userService; Config = configService; Message = messageService; Cloud = cloudService; Theme = themeService; }
public ContentExportImport(IMenuService menuService, Func<string, IThemeService> themeServiceFactory, Func<string, IPagesService> pagesServiceFactory, IStoreService storeService, ISettingsManager settingsManager) { _menuService = menuService; _storeService = storeService; var pagesChosenRepository = settingsManager.GetValue( "VirtoCommerce.Content.MainProperties.PagesRepositoryType", string.Empty); var themeChosenRepository = settingsManager.GetValue( "VirtoCommerce.Content.MainProperties.ThemesRepositoryType", string.Empty); _pagesService = pagesServiceFactory.Invoke(pagesChosenRepository); _themeService = themeServiceFactory.Invoke(themeChosenRepository); }