public static void Apply(Form form, string language) { var resManager = new ComponentResourceManager(form.GetType()); ApplyResources(resManager, form, new CultureInfo(language)); resManager.ReleaseAllResources(); GC.Collect(); }
private void DisposeDrawResources() { foreach (var image in customImages) { image.Dispose(); } customImages.Clear(); resources.ReleaseAllResources(); }