public static void HideWaitForm(this Control owner) { if (!Managers.ContainsKey(owner)) { return; } SplashScreenManager manager = Managers[owner]; Managers.Remove(owner); try { manager.CloseWaitForm(); } finally { manager.Dispose(); } }
public void Dispose() { _manager?.Dispose(); _manualResetEventSlim?.Dispose(); }