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); }
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; })); }
public ISlideshowPlayerEngine GetEngineInstance(PresentationProfile profile) { return(profile != null ? this.GetEngineBlueprint(profile.Source) : this.GetEngines().First <ISlideshowPlayerEngine>()); }