Example #1
0
 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;
 }
Example #2
0
        public StartupDialogViewModel(Configuration conf, IPlaceholderService placeholder, IEventAggregator ea)
        {
            this.placeholder = placeholder;

            Lowerthirds = conf.Lowerthirds;

            ea.GetEvent <Core.Events.StartupDialogClosing>().Subscribe(Closing);
        }
Example #3
0
 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);
 }
Example #4
0
        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);
        }
Example #5
0
        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));
        }
Example #6
0
        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>();
        }
Example #7
0
 public GeometryFactory(IPlaceholderService phService)
 {
     _phService = phService ?? throw new ArgumentNullException(nameof(phService));
 }
Example #8
0
 internal GeometryFactory(IPlaceholderService placeholderService)
 {
     _placeholderService = placeholderService ?? throw new ArgumentNullException(nameof(placeholderService));
 }
 public InnerTransformFactory(IPlaceholderService phService)
 {
     _phService = phService;
 }
Example #10
0
 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;
 }
Example #12
0
 public LocationParser(IPlaceholderService phService)
 {
     _phService = phService ?? throw new ArgumentNullException(nameof(phService));
 }
 public InnerTransformFactory(IPlaceholderService phService)
 {
     _phService = phService ?? throw new ArgumentNullException(nameof(phService));
 }