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

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