Пример #1
0
        private IList <BindingListItem> GetBindingList(string subjectType)
        {
            IList <BindingListItem> dataSource = null;

            switch (subjectType)
            {
            case SubjectTypeRegistry.User:
                UserSystem userSys = new UserSystem(UnitOfWork);
                dataSource = userSys.GetBindingList();
                break;

            case SubjectTypeRegistry.Project:
                ProjectSystem projSys = new ProjectSystem(UnitOfWork);
                dataSource = projSys.GetBindingList();
                break;
            }

            return(dataSource);
        }
Пример #2
0
 public ProjectFacade(IUnitOfWork unitOfWork)
     : base(unitOfWork)
 {
     ProjectSystem = new ProjectSystem(unitOfWork);
 }