/// <summary> /// Disposes the singleton instance of this form. /// </summary> public static void DisposeSingleton() { allowDisposal = true; if (thisSingleton != null) { thisSingleton.Close(); thisSingleton = null; } }