Пример #1
0
        private PlayoutSettings GetPlayoutSettings()
        {
            var result = new PlayoutSettings();

            result.RendererSettings.VideoDevice = Properties.Settings.Default.RendererDeviceName;
            result.PlaylistSettings             = PlayoutRepository.GetMPlaylistSettings();
            result.CGItems = PlayoutRepository.GetCGItems();
            return(result);
        }
Пример #2
0
        private void EditCGItems()
        {
            var items = PlayoutRepository.GetCGItems();

            this.EditCGItemsInteractionRequest.Raise(new EditCGItemsConfirmation {
                Title = "编辑字幕", Items = items.Clone()
            },
                                                     c =>
            {
                if (c.Confirmed)
                {
                    PlayoutRepository.SaveCGItems(c.Items);
                }
            });
        }