public void ExternalClose() { if (InvokeRequired) { Invoke(new Delegates.CloseDelegate(ExternalClose)); return; } ShuttingDown = true; Close(); }