public Builder(IPreSettings preSettings, PlaceholderFontService fontService, SlidePart sdkSldPart, IPlaceholderService placeholderService) { _preSettings = preSettings ?? throw new ArgumentNullException(nameof(preSettings)); _fontService = fontService ?? throw new ArgumentNullException(nameof(fontService)); _sdkSldPart = sdkSldPart ?? throw new ArgumentNullException(nameof(sdkSldPart)); _placeholderService = placeholderService; }
public StartupDialogViewModel(Configuration conf, IPlaceholderService placeholder, IEventAggregator ea) { this.placeholder = placeholder; Lowerthirds = conf.Lowerthirds; ea.GetEvent <Core.Events.StartupDialogClosing>().Subscribe(Closing); }
public StreamsViewModel(Configuration conf, ICasparCGService casparCGService, IPlaceholderService placeholderService, IExecuteService executeService) { this.casparCGService = casparCGService; this.placeholderService = placeholderService; this.executeService = executeService; Streams = new ObservableCollection <Stream>(conf.Streams); StreamsHeader = conf.StreamsHeader; ActivateCommand = new DelegateCommand <Stream>(ActivateStream); DeactivateCommand = new DelegateCommand <Stream>(DeactivateStream); }
public StartupDialogViewModel(StartupConfiguration configuration, IPlaceholderService placeholderService, ICasparCGService casparService, IEventAggregator ea) { this.startupConfiguration = configuration; this.placeholderService = placeholderService; this.casparService = casparService; Configurations = configuration.Configurations; SelectedConfiguration = Configurations?.FirstOrDefault(); ea.GetEvent <Core.Events.StartupDialogClosing>().Subscribe(Closing); }
public PlaceholderFontService(SlidePart sdkSldPart, IPlaceholderService placeholderService) { _sdkSldPart = sdkSldPart ?? throw new ArgumentNullException(nameof(sdkSldPart)); _placeholderService = placeholderService ?? throw new ArgumentNullException(nameof(placeholderService)); var layoutSldData = _sdkSldPart.SlideLayoutPart.SlideLayout.CommonSlideData; var masterSldData = _sdkSldPart.SlideLayoutPart.SlideMasterPart.SlideMaster.CommonSlideData; _layoutPlaceholders = new Lazy <HashSet <PlaceholderFontData> >(InitLayoutMaster(layoutSldData)); _masterPlaceholders = new Lazy <HashSet <PlaceholderFontData> >(InitLayoutMaster(masterSldData)); _masterBodyFontHeights = new Lazy <Dictionary <int, int> >(InitBodyTypePlaceholder(_sdkSldPart)); }
public LowerthirdsViewModel(Configuration conf, ICasparCGService casparCGService, IPlaceholderService placeholder) { this.configuration = conf; this.casparCGService = casparCGService; this.placeholder = placeholder; Lowerthirds = new ObservableCollection <Lowerthird>(conf.Lowerthirds); LowerthirdsHeader = conf.LowerthirdsHeader; LowerthirdDeactivateText = conf.LowerthirdDeactivateText; ActivateCommand = new DelegateCommand <Lowerthird>(Activate, i => !i.IsActive); AddCommand = new DelegateCommand(Add); DeactivateCommand = new DelegateCommand(Deactivate, () => currentlyActive != null); DeleteCommand = new DelegateCommand <Lowerthird>(Delete); EditCommand = new DelegateCommand <Lowerthird>(Edit); EditDialogRequest = new InteractionRequest <Confirmation>(); }
public GeometryFactory(IPlaceholderService phService) { _phService = phService ?? throw new ArgumentNullException(nameof(phService)); }
internal GeometryFactory(IPlaceholderService placeholderService) { _placeholderService = placeholderService ?? throw new ArgumentNullException(nameof(placeholderService)); }
public InnerTransformFactory(IPlaceholderService phService) { _phService = phService; }
internal Builder(SlidePart slidePart) { _slidePart = slidePart; _placeholderService = new PlaceholderService(slidePart.SlideLayoutPart); }
/// <summary> /// Инициализирует новый экземпляр класса <see cref="GetAllPlaceholdersConsumer"/>. /// </summary> /// <param name="service">Сервисный объект для управления Placeholder.</param> /// <param name="logger">Абстракция над сервисом журналирования.</param> public GetAllPlaceholdersConsumer(IPlaceholderService service, ILogger <GetAllPlaceholdersConsumer> logger) { this.service = service; this.logger = logger; }
public LocationParser(IPlaceholderService phService) { _phService = phService ?? throw new ArgumentNullException(nameof(phService)); }
public InnerTransformFactory(IPlaceholderService phService) { _phService = phService ?? throw new ArgumentNullException(nameof(phService)); }