Class2.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace WpfApp1.model
  7. {
  8. class Globals
  9. {
  10. public static IDataProvider dataProvider;
  11. IEnumerable<Namecar> getNamecar()
  12. {
  13. return new Namecar[] {
  14. new Namecar { title = "Toyota Trueno AE8"},
  15. new Namecar { title = "Toyota Supra A80"},
  16. new Namecar { title = "Nissal Skyline R34" },
  17. new Namecar { title = "Nissan Silvia S15"},
  18. new Namecar { title = "Toyota Camry 3.5"},
  19. new Namecar { title = "Audi RS 6" },
  20. new Namecar { title = "Трактор LOVOL TE354 HT"},
  21. new Namecar { title = "BMW M5 F90"},
  22. new Namecar { title = "BMW E36" },
  23. new Namecar { title = "Daewoo Matiz" }
  24. };
  25. }
  26. IEnumerable<Carsprice> getCarsprice()
  27. {
  28. return new Carsprice[] {
  29. new Carsprice{title="Малая цена", priceFrom=0, priceTo=15001},
  30. new Carsprice{title="Средняя цена", priceFrom = 20000, priceTo=35000},
  31. new Carsprice{title="Высокая цена", priceFrom = 35001, priceTo=70000},
  32. };
  33. }
  34. }
  35. }