예제 #1
0
 private void ChangeTheme(object sender, EventArgs e)
 {
     if (GetCurrentThemeIndex() != cmbTheme.SelectedIndex)
     {
         var theme = (ThemeManager.Themes)(cmbTheme.SelectedIndex);
         ThemeManager.ChangeTheme(theme);
         Toasts.DisplaySuccess($"{theme.ToString()} theme set successfully.");
     }
 }