SkinConverter.cs 674 B

12345678910111213141516171819202122232425
  1. namespace Easychart.Finance.Win
  2. {
  3. using Easychart.Finance;
  4. using System;
  5. using System.ComponentModel;
  6. public class SkinConverter : StringConverter
  7. {
  8. public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
  9. {
  10. return new TypeConverter.StandardValuesCollection(FormulaSkin.GetBuildInSkins());
  11. }
  12. public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
  13. {
  14. return true;
  15. }
  16. public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
  17. {
  18. return true;
  19. }
  20. }
  21. }