Class2.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Diagnostics;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace WpfApp4.model
  8. {
  9. class Globals
  10. {
  11. public static IDataProvider dataProvider;
  12. IEnumerable<ClientPrice> getClientPrice()
  13. {
  14. return new ClientPrice[] {
  15. new ClientPrice{title="Все цены", PriceFrom=500, PriceTo=30000},
  16. new ClientPrice{title="Низкая цена", PriceFrom=500, PriceTo=3000},
  17. new ClientPrice{title="Средняя цена", PriceFrom=3000, PriceTo = 15000},
  18. new ClientPrice{title="Высокая цена", PriceFrom=15000, PriceTo=30000},
  19. };
  20. }
  21. IEnumerable<ClientCategory> getClientCategory()
  22. {
  23. return new ClientCategory[]
  24. {
  25. new ClientCategory { title = "По России" },
  26. new ClientCategory { title = "За границей" },
  27. };
  28. }
  29. }
  30. }