private void LoadOverlay() { ResetOverlay(); _browserObject = new BrowserObject(); hideOverlayToolStripMenuItem.Checked = false; }
private static void ResetOverlay() { if (_browserObject == null) { return; } if (_browserObject.InvokeRequired) { CloseOverlayCallback d = ResetOverlay; _browserObject.Invoke(d, new object[] { }); } else { _browserObject.Dispose(); } _browserObject = null; }