コード例 #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 UserFacade(IUnitOfWork unitOfWork)
     : base(unitOfWork)
 {
     UserSystem = new UserSystem(unitOfWork);
 }