Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
 internal static void Invalidate()
 {
     ParentForm.Invalidate();
 }