Class2.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System.Collections.Generic;
  2. using System.Linq;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Threading.Tasks;
  8. namespace WpfApp1.model
  9. {
  10. class Globals
  11. {
  12. public static IDataProvider dataProvider;
  13. IEnumerable<WorkerPos> getWorkerPos()
  14. {
  15. return new WorkerPos[] {
  16. new WorkerPos { title = "Уборщик"},
  17. new WorkerPos { title = "Директор"},
  18. new WorkerPos { title = "Мастер"},
  19. new WorkerPos { title = "Стажер"},
  20. new WorkerPos { title = "Оператор"}
  21. };
  22. }
  23. IEnumerable<WorkerAge> getWorkerAge()
  24. {
  25. return new WorkerAge[] {
  26. new WorkerAge{title="Все возраста", AgeFrom=0, AgeTo=110},
  27. new WorkerAge{title="Дети", AgeFrom=1, AgeTo=100},
  28. new WorkerAge{title="Подростки", AgeFrom=100, AgeTo = 500},
  29. new WorkerAge{title="Мужчины", AgeFrom=500, AgeTo=700},
  30. new WorkerAge{title="Старики", AgeFrom=700, AgeTo=200}
  31. };
  32. }
  33. IEnumerable<WorkerSex> getWorkerSex()
  34. {
  35. return new WorkerSex[] {
  36. new WorkerSex { title = "Мужской"},
  37. new WorkerSex { title = "Женский"}
  38. };
  39. }
  40. }
  41. }