private void Themes_SelectionChangeCommitted(object sender, EventArgs e) { ThemeStyle selectedTheme = (ThemeStyle)Enum.Parse(typeof(ThemeStyle), cbxThemes.SelectedItem.ToString()); SkinManager.Init(selectedTheme); Properties.Settings.Default.Theme = cbxThemes.SelectedItem.ToString(); if (ParentForm != null) { ParentForm.Invalidate(true); } }
internal static void Invalidate() { ParentForm.Invalidate(); }