IDataProvider.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace WpfApp2.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. }