/// <summary> /// HACK: Updates Preferences dialog /// </summary> private static void UpdatePreferencesDialog() { if (!PreferencesDialog.IsOpen) { return; } PreferencesDialog dialog = (from form in Application.OpenForms.Cast <Form>() where form.Name == "PreferencesDialog" select form as PreferencesDialog).First(); if (dialog == null) { return; } dialog.Invoke(new MethodInvoker(() => { dialog.InitializeStyles(); dialog.PopulateActions(); })); }