private void RefreshLocalView() { this.LocalView.Dispatcher.BeginInvoke(new Action(() => { try { LocalView.Source = CaptureHelper.BitmapToBitmapSource(_ScreenView); } catch (Exception ex) { Debug.Write($"Refresh Error:{ex.Message}"); } })); }
private void RefreshRemoteView() { this.RemoteView.Dispatcher.BeginInvoke(new Action(() => { try { if (_RemoteView == null) { return; } RemoteView.Source = CaptureHelper.BitmapToBitmapSource(_RemoteView); } catch (Exception ex) { Debug.Write($"Refresh Error:{ex.Message}"); } })); }