예제 #1
0
        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 { }
        }
예제 #2
0
        private void SystemShutdown(bool isClosing)
        {
            if (isClosing)
            {
                MsPlayer.CloseDevice();
            }

            try
            {
                _desktopWindowCollector.Dispose();
            }
            catch { }
        }