Class2.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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<ClientPrice> getClientPrice()
  12. {
  13. return new ClientPrice[] {
  14. new ClientPrice{title="Все цены", PriceFrom=500, PriceTo=30000},
  15. new ClientPrice{title="Низкая цена", PriceFrom=500, PriceTo=3000},
  16. new ClientPrice{title="Средняя цена", PriceFrom=3000, PriceTo = 15000},
  17. new ClientPrice{title="Высокая цена", PriceFrom=15000, PriceTo=30000},
  18. };
  19. }
  20. IEnumerable<ClientCategory> getClientCategory()
  21. {
  22. return new ClientCategory[]
  23. {
  24. new ClientCategory { title = "По России" },
  25. new ClientCategory { title = "За границей" },
  26. };
  27. }
  28. }
  29. }