PageRenderTime 102ms CodeModel.GetById 60ms app.highlight 2ms RepoModel.GetById 39ms app.codeStats 0ms

/TimeSheetReporting/TimeSheetReporting/Helper/ProjectListProvider.cs

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