private void SystemShutdownHandler(bool isClosed) { try { MsPlayer.CloseDevice(); } catch { } try { syncVideoPlayState(false); _player.Stop(); } catch { } try { PPTViewer.Close(); } catch { } try { _desktopWindowCollector.PushingData -= _desktopWindowCollector_PushingData; } catch { } try { _desktopWindowCollector.Dispose(); } catch { } }
private void SystemShutdown(bool isClosing) { if (isClosing) { MsPlayer.CloseDevice(); } try { _desktopWindowCollector.Dispose(); } catch { } }