Exemple #1
0
        public async Task SavePresentationProfileAsync(string name, PresentationProfile profile)
        {
            var existing = await LoadDocumentAsync();

            existing.PresentationProfiles.Remove(name);
            existing.PresentationProfiles[profile.Name] = profile;
            await _documentManager.UpdateAsync(existing);
        }
Exemple #2
0
 public async Task <dynamic> BuildDisplayAsync(IShapeFactory shapeFactory, PresentationProfile profile, IEnumerable <dynamic> slides, ContentPart part)
 {
     return(await shapeFactory.CreateAsync <PresentationDisplayViewModel>("SlideshowPlayerEngines_StandardPlayer", vm =>
     {
         vm.Profile = profile;
         vm.Slides = slides;
         vm.Part = part;
     }));
 }
Exemple #3
0
 public ISlideshowPlayerEngine  GetEngineInstance(PresentationProfile profile)
 {
     return(profile != null ? this.GetEngineBlueprint(profile.Source) : this.GetEngines().First <ISlideshowPlayerEngine>());
 }