/// ------------------------------------------------------------------------------------ /// <summary> /// Shut down the one instance of ResourceHelper. /// </summary> /// <remarks> /// This should be called once when the application shuts down. /// </remarks> /// ------------------------------------------------------------------------------------ public static void ShutdownHelper() { if (s_stringResources != null) s_stringResources.ReleaseAllResources(); s_stringResources = null; if (s_helpResources != null) s_helpResources.ReleaseAllResources(); s_helpResources = null; if (s_form != null) s_form.Dispose(); s_form = null; }
/// ------------------------------------------------------------------------------------ /// <summary> /// Shut down the one instance of ResourceHelper. /// </summary> /// <remarks> /// This should be called once when the application shuts down. /// </remarks> /// ------------------------------------------------------------------------------------ public static void ShutdownHelper() { if (s_form != null) { s_form.DisposeStaticMembers(); s_form.Dispose(); } s_form = null; }