public frmMain( ILogger logger, IHttpClient httpClient, Container diContainer, IAuthorProfileGenerator authorProfileGenerator, IAmazonClient amazonClient, PreviewProviderFactory previewProviderFactory, IAmazonInfoParser amazonInfoParser, IAliasesRepository aliasesRepository, IPreviewDataExporter previewDataExporter, XRayExporterFactory xrayExporterFactory, ChaptersService chaptersService, IXRayService xrayService, ITermsService termsService) { InitializeComponent(); _progress = new ProgressBarCtrl(prgBar); var rtfLogger = new RtfLogger(txtOutput); _logger = logger; _diContainer = diContainer; _authorProfileGenerator = authorProfileGenerator; _amazonClient = amazonClient; _previewProviderFactory = previewProviderFactory; _amazonInfoParser = amazonInfoParser; _aliasesRepository = aliasesRepository; _previewDataExporter = previewDataExporter; _xrayExporterFactory = xrayExporterFactory; _chaptersService = chaptersService; _xrayService = xrayService; _termsService = termsService; _logger.LogEvent += rtfLogger.Log; _httpClient = httpClient; }
/// <summary> /// Initializes a new instance of the <see cref="TermListViewModel"/> class /// and ensures that terms were loaded from the service. /// </summary> /// <param name="termsService">A service that allows to access a storage of glossary terms.</param> /// <param name="editViewModel">A model of a view to edit terms.</param> private static TermListViewModel CreateViewModelLoaded(ITermsService termsService, ITermEditViewModel editViewModel) { var model = new TermListViewModel(termsService, editViewModel); DispatcherHelper.ProcessCurrentQueue(); return(model); }
public void Setup() { _logger = new Logger(); _termsService = new TermsService(); _file = new SecondarySourceFile(_logger, _termsService); _chaptersService = new ChaptersService(_logger); _xrayService = new XRayService(_logger, _chaptersService, new AliasesRepository(_logger, new AliasesService(_logger))); }
public UtilityController(IAboutService aboutService, ITermsService termsService, IPolicyService policyService, IFeeService feeService, IContactService contactService, IHomeService homeService) { this.aboutService = aboutService; this.termsService = termsService; this.policyService = policyService; this.feeService = feeService; this.contactService = contactService; this.homeService = homeService; }
public void Setup() { _logger = new Logger(); _termsService = new TermsService(new XRayBuilderConfig()); _file = new SecondarySourceFile(_logger, _termsService); _chaptersService = new ChaptersService(_logger); _directoryService = new DirectoryService(_logger, null); _xrayService = new XRayService(_logger, _chaptersService, new AliasesRepository(_logger, new AliasesService(_logger), _directoryService), _directoryService, _termsService, new ParagraphsService()); }
public XRayService(ILogger logger, ChaptersService chaptersService, IAliasesRepository aliasesRepository, IDirectoryService directoryService, ITermsService termsService, IParagraphsService paragraphsService) { _logger = logger; _chaptersService = chaptersService; _aliasesRepository = aliasesRepository; _directoryService = directoryService; _termsService = termsService; _paragraphsService = paragraphsService; }
public NotesController(INotesService notesService, ISubjectsService subjectsService, ITermsService termsService, IAttachmentsService attachmentsService, IQuestionsService questionsService, IMapper mapper) { _notesService = notesService; _subjectsService = subjectsService; _termsService = termsService; _attachmentsService = attachmentsService; _questionsService = questionsService; _mapper = mapper; }
public SettingsController(IOptions <RootSubjectSettings> rootSubjectSettings, IDataService dataService, IRecruitsService recruitsService, ISubjectsService subjectsService, ITermsService termsService, IMapper mapper) { _dataService = dataService; _recruitsService = recruitsService; _subjectsService = subjectsService; _termsService = termsService; _rootSubjectSettings = rootSubjectSettings.Value; _mapper = mapper; }
public AnalysisController(IQuestionsService questionsService, IRecruitsService recruitsService, IOptions <RootSubjectSettings> rootSubjectSettings, ISubjectsService subjectsService, ITermsService termsService, IMapper mapper) { _questionsService = questionsService; _recruitsService = recruitsService; _subjectsService = subjectsService; _termsService = termsService; _rootSubjectSettings = rootSubjectSettings.Value; _mapper = mapper; }
public QuestionsController(IQuestionsService questionsService, IRecruitsService recruitsService, IAttachmentsService attachmentsService, ISubjectsService subjectsService, ITermsService termsService, IMapper mapper) { _questionsService = questionsService; _recruitsService = recruitsService; _attachmentsService = attachmentsService; _subjectsService = subjectsService; _termsService = termsService; _mapper = mapper; }
public ResolvesController(IResolvesService resolvesService, IReviewRecordsService reviewRecordsService, INotesService notesService, ITermsService termsService, IAttachmentsService attachmentsService, IOptions <AdminSettings> adminSettings, IMapper mapper) { _resolvesService = resolvesService; _reviewRecordsService = reviewRecordsService; _notesService = notesService; _termsService = termsService; _attachmentsService = attachmentsService; _adminSettings = adminSettings.Value; _mapper = mapper; }
public TermsPage(IContainer container) { Title = "Terms"; InitializeComponent(); BindingContext = this; //TermsConditionsButtonColor = Color.Black; //PrivacyPolicyButtonColor = ColorConstants.LightBlueTextColor; using (var scope = container.BeginLifetimeScope()) { _termsService = scope.Resolve <ITermsService>(); } GetTermsAndPolicy(); }
public MainPage(IDeviceDrivePlatform platform, IContainer container) { InitializeComponent(); BindingContext = this; Title = "LightSwitch"; _platform = platform; _container = container; using (var scope = container.BeginLifetimeScope()) { _termsService = scope.Resolve <ITermsService>(); } }
public DataController(IOptions <RootSubjectSettings> rootSubjectSettings, IOptions <AdminSettings> adminSettings, IDataService dataService, ISubjectsService subjectsService, ITermsService termsService, INotesService notesService, IRecruitsService recruitsService, IQuestionsService questionsService, IAttachmentsService attachmentsService, IMapper mapper) { _adminSettings = adminSettings.Value; _rootSubjectSettings = rootSubjectSettings.Value; _subjectsService = subjectsService; _termsService = termsService; _notesService = notesService; _recruitsService = recruitsService; _questionsService = questionsService; _attachmentsService = attachmentsService; _dataService = dataService; _mapper = mapper; }
/// <summary> /// Initializes a new instance of the <see cref="TermListViewModel"/> class. /// </summary> /// <param name="termsService">A service that allows to access a storage of glossary terms.</param> /// <param name="editViewModel">A model of a view to edit terms.</param> public TermListViewModel(ITermsService termsService, ITermEditViewModel editViewModel) { if (termsService == null) { throw new ArgumentNullException("termsService"); } if (editViewModel == null) { throw new ArgumentNullException("editViewModel"); } this._termsService = termsService; this.EditViewModel = editViewModel; // Create view of term collection sorted by Name. var termsView = new ListCollectionView(this._terms); termsView.SortDescriptions.Add(new SortDescription( PropertyExpressionHelper.GetName <Term, string>(_ => _.Name), ListSortDirection.Ascending)); this._termsView = termsView; this._termsViewContext = new DispatcherSynchronizationContext(termsView.Dispatcher); // Create commands. this._addTerm = new RelayCommand( _ => this.AddTermExecuted(), _ => !this.IsBusy && !this.IsEditMode); this._editTerm = new RelayCommand( p => this.EditTermExecuted(p), p => !this.IsBusy && !this.IsEditMode && this._terms.Contains(p)); this._deleteTerm = new RelayCommand( _ => this.DeleteTermExecuted(), p => !this.IsBusy && this._editingTerm != null); this._accept = new RelayCommand( _ => this.AcceptExecuted(), _ => !this.IsBusy && this.IsEditMode); this._cancel = new RelayCommand( _ => this.CancelExecuted(), _ => !this.IsBusy && this.IsEditMode); this._recreateStorage = new RelayCommand( _ => this.RecreateStorageExecuted(), _ => this._isInvalidStorage); this.StartLoadTerms(); }
public frmCreateXR( ITermsService termsService, IAliasesRepository aliasesRepository, IAmazonClient amazonClient, IRoentgenClient roentgenClient, IAliasesService aliasesService) { _termsService = termsService; _aliasesRepository = aliasesRepository; _amazonClient = amazonClient; _roentgenClient = roentgenClient; _aliasesService = aliasesService; InitializeComponent(); var dgvType = dgvTerms.GetType(); var pi = dgvType.GetProperty("DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic); pi?.SetValue(dgvTerms, true, null); }
public frmCreateXR( ITermsService termsService, IAliasesRepository aliasesRepository, IAmazonClient amazonClient, IRoentgenClient roentgenClient, IAliasesService aliasesService, IDirectoryService directoryService, IParagraphsService paragraphsService, ILogger logger) { _termsService = termsService; _aliasesRepository = aliasesRepository; _amazonClient = amazonClient; _roentgenClient = roentgenClient; _aliasesService = aliasesService; _directoryService = directoryService; _paragraphsService = paragraphsService; _logger = logger; InitializeComponent(); var pi = dgvTerms.GetType().GetProperty("DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic); pi?.SetValue(dgvTerms, true, null); }
/// <summary> /// Initializes a new instance of the <see cref="TermListViewModelDraft"/> class. /// </summary> /// <param name="termsService">A service that allows to access a storage of glossary terms.</param> /// <param name="editViewModel">A model of a view to edit terms.</param> public TermListViewModelDraft(ITermsService termsService, ITermEditViewModel editViewModel) : base(termsService, editViewModel) { }
public TermsController(ITermsService termsService) { _termsService = termsService; }
public SecondarySourceFile(ILogger logger, ITermsService termsService) { _logger = logger; _termsService = termsService; }
public TermsController(ITermsService termsService, ISubjectsService subjectsService, IMapper mapper) { _mapper = mapper; _termsService = termsService; _subjectsService = subjectsService; }
public KfxXrayService(ILogger logger, ITermsService termsService, IParagraphsService paragraphsService) { _logger = logger; _termsService = termsService; _paragraphsService = paragraphsService; }
public TermsConditionController(ITermsService termsAndCondition) { _termsAndCondition = termsAndCondition; }
public FakeTermBalanceRepository(ITermsService termsService) { throw new NotSupportedException(); }
public DefinitionsController(ITermsService termsService) { _termsService = termsService; }
public frmPreviewXR(ITermsService termsService) { _termsService = termsService; InitializeComponent(); }
public TermsController(ITermsService termsService, IMapper mapper) { _mapper = mapper; _termsService = termsService; }
public static void MapContent(this SourceViewModel model, INotesService notesService, ITermsService termsService) { if (model.NoteId > 0) { var note = notesService.GetById(model.NoteId); model.TermId = note.TermId; model.Title = note.Title; model.Text = note.Text; } else if (model.TermId > 0) { var term = termsService.GetById(model.TermId); model.Title = $"{term.Subject.Title} {term.Title}"; model.Text = term.Text; model.NoteId = 0; } }
public TermBalancesService(ITermBalanceRepository termBalanceRepository, ITermsService termsService) { _termBalanceRepository = termBalanceRepository; _termsService = termsService; }