ERROR.cs 646 B

123456789101112131415161718192021222324252627
  1. namespace FML.NATIVE
  2. {
  3. using Easychart.Finance;
  4. using Easychart.Finance.DataProvider;
  5. using System;
  6. public class ERROR : FormulaBase
  7. {
  8. public string MSG = "";
  9. public ERROR()
  10. {
  11. base.AddParam("MSG", "Errors", "0", "0");
  12. }
  13. public override FormulaPackage Run(IDataProvider dp)
  14. {
  15. base.DataProvider = dp;
  16. FormulaData f = (double) 1.0 / (double) 0.0;
  17. f.Name = "A";
  18. base.SETNAME(this.MSG);
  19. base.SETTEXTVISIBLE(f, false);
  20. return new FormulaPackage(new FormulaData[] { f }, "");
  21. }
  22. }
  23. }