Example #1
0
        public void CommandBinding_AddLucidVideo(object sender, ExecutedRoutedEventArgs e)
        {
            if (!menuAddLucidVideo.IsEnabled)
            {
                return;
            }

            VideoListItem Result = SearchVideoWindow.Instance(new SearchSettings()
            {
                MediaType = MediaType.Video
            });

            if (Result != null)
            {
                LayerLucidVideoControl Layer = new LayerLucidVideoControl();
                Layer.OpenMedia(SessionCore.Instance.Business.GetMediaObject(Result.FileName));
                SessionCore.Instance.Layers.Add(Layer);
            }
        }
        public void CommandBinding_AddLucidVideo(object sender, ExecutedRoutedEventArgs e) {
            if (!menuAddLucidVideo.IsEnabled)
                return;

            VideoListItem Result = SearchVideoWindow.Instance(new SearchSettings() { MediaType = MediaType.Video });
            if (Result != null) {
                LayerLucidVideoControl Layer = new LayerLucidVideoControl();
                Layer.OpenMedia(SessionCore.Instance.Business.GetMediaObject(Result.FileName));
                SessionCore.Instance.Layers.Add(Layer);
            }
        }