PageRenderTime 109ms CodeModel.GetById 55ms RepoModel.GetById 1ms app.codeStats 0ms

/TimeSheetReporting/TimeSheetReporting/Helper/ProjectListProvider.cs

#
C# | 37 lines | 35 code | 2 blank | 0 comment | 0 complexity | 08dad74d6b08434d3198b5066564eb7c MD5 | raw file
  1. using System;
  2. using System.Net;
  3. using System.Windows;
  4. using System.Windows.Controls;
  5. using System.Windows.Documents;
  6. using System.Windows.Ink;
  7. using System.Windows.Input;
  8. using System.Windows.Media;
  9. using System.Windows.Media.Animation;
  10. using System.Windows.Shapes;
  11. using TimeSheetReporting.Web.Service;
  12. using TimeSheetReporting.Web.Model;
  13. using System.Windows.Ria;
  14. namespace TimeSheetReporting.Helper
  15. {
  16. public class ProjectListProvider
  17. {
  18. TimeSheetContext _dc;
  19. public TimeSheetContext DomainContext
  20. {
  21. set
  22. {
  23. _dc = value;
  24. _dc.Load<Project>(_dc.GetProjectQuery());
  25. }
  26. }
  27. public EntitySet<Project> ProjectList
  28. {
  29. get
  30. {
  31. return _dc.Projects;
  32. }
  33. }
  34. }
  35. }