public void LoadPreviewWindowImages() { if (isLoadPreviewWindow) { return; } isLoadPreviewWindow = true; WindowList = _enumerationWindowService.GetWindowList(); if (WindowList != null) { SelectedWindow = WindowList.FirstOrDefault(); } isLoadPreviewWindow = false; }
private void SwitchPreviewWindowSceneHandler(PreviewWindowInfo previewWindowInfo) { AllSceneHidden(); _player.Pause(); if (_d3dSource == null) { try { _d3dSource = new D3DImageSource(); if (_d3dSource.SetupSurface(1280, 720, FrameFormat.YV12)) { this.imageD3D.Source = this._d3dSource.ImageSource; } } catch (Exception ex) { MessageBox.Show(ex.Message); } } _desktopWindowCollector.SetWindowHandle(previewWindowInfo.HWD); _desktopWindowCollector.PushingData += _desktopWindowCollector_PushingData; LiveWindowPreviewScene.Visibility = Visibility.Visible; }
private void SelectedDemonstrationWindowEventHandler(PreviewWindowInfo previewWindowInfo) { SelectedPreviewWindowInfo = previewWindowInfo; }