GradientBGParamList.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using System.Collections.ObjectModel;
  2. namespace GeekDesk.ViewModel.Temp
  3. {
  4. public class GradientBGParamList
  5. {
  6. private static ObservableCollection<GradientBGParam> gradientBGParams;
  7. static GradientBGParamList()
  8. {
  9. //gradientBGParams = (ObservableCollection<GradientBGParam>)ConfigurationManager.GetSection("SystemBGs")
  10. gradientBGParams = new ObservableCollection<GradientBGParam>
  11. {
  12. new GradientBGParam("诸神黄昏", "#FCCF31", "#F55555"),
  13. new GradientBGParam ("森林之友", "#EBF7E3", "#A8E4C0"),
  14. new GradientBGParam("魅惑妖术", "#FFDDE1", "#EE9CA7"),
  15. new GradientBGParam("魅惑妖术", "#D2F6FF", "#91B0E4")
  16. };
  17. }
  18. public static ObservableCollection<GradientBGParam> GradientBGParams
  19. {
  20. get
  21. {
  22. return gradientBGParams;
  23. }
  24. set
  25. {
  26. gradientBGParams = value;
  27. }
  28. }
  29. }
  30. }