public static void Close(bool thowIfNotRunning = false) { if (Default == null && !thowIfNotRunning) { return; } if (Default == null) { throw new ApplicationException("SplashScreen não está sendo exibida."); } Default.CloseForm(); Default = null; User32.CleanBuffers(); }