private static void FreeWaitingForm() { _waitingState = ""; _isVisible = false; if (_waitForm == null) { return; } _waitForm.Hide(); if (!_waitForm.IsDisposed) { _waitForm.Dispose(); } _waitForm = null; }