/// <summary> /// Displays dialog to select the preferred theme /// </summary> /// <returns>true if the user selected a theme</returns> public static bool ShowThemeSelectDialog() { bool retVal = false; var theme = ThemeSelectForm.SelectTheme(); if (!String.IsNullOrEmpty(theme)) { Common.AppPreferences.Theme = theme; retVal = true; } return(retVal); }
/// <summary> /// Event handler to change the theme (color scheme) /// </summary> /// <param name="sender">event sender</param> /// <param name="e">event args</param> private void buttonColorScheme_Click(object sender, EventArgs e) { Hide(); var theme = ThemeSelectForm.SelectTheme(); if (!String.IsNullOrEmpty(theme)) { if (EvtThemeChanged != null) { EvtThemeChanged(this, theme); } } Show(); }