示例#1
0
        private void LoadOverlay()
        {
            ResetOverlay();

            _browserObject = new BrowserObject();

            hideOverlayToolStripMenuItem.Checked = false;
        }
示例#2
0
        private static void ResetOverlay()
        {
            if (_browserObject == null)
            {
                return;
            }

            if (_browserObject.InvokeRequired)
            {
                CloseOverlayCallback d = ResetOverlay;
                _browserObject.Invoke(d, new object[] { });
            }
            else
            {
                _browserObject.Dispose();
            }

            _browserObject = null;
        }