Beispiel #1
0
 /// <summary>
 /// Adds the specified color scheme preset.
 /// </summary>
 /// <param name="ColorSchemePreset">The color scheme preset.</param>
 /// <returns>System.Int32.</returns>
 public int add(ColorSchemePreset ColorSchemePreset)
 {
     objSchemes.Add(ColorSchemePreset);
     UserSchemes.Add(ColorSchemePreset);
     SaveUserSchemes();
     return(objSchemes.Count - 1);
 }
 /// <summary>
 /// Loads the color scheme from preset.
 /// </summary>
 /// <param name="pPreset">The p preset.</param>
 public void LoadColorSchemeFromPreset(ColorSchemePreset pPreset)
 {
     ThemeName   = pPreset.Name;
     ColorScheme = new ColorScheme(pPreset.PrimaryColor, pPreset.DarkPrimaryColor, pPreset.LightPrimaryColor, pPreset.AccentColor, pPreset.TextShade);
 }