Пример #1
0
        private void BindUsersAndStories()
        {
            UserService userService = (UserService) new ServiceLocator <AspNetUser>().locate();

            Users.DataSource = userService.ListAll();
            Users.DataBind();

            UserStoryService userStoryService = (UserStoryService) new ServiceLocator <UserStory>().locate();
            var stories = userStoryService.ListAll();

            stories.Insert(0, new UserStory());
            Stories.DataSource = stories;
            Stories.DataBind();

            SprintService sprintService = (SprintService) new ServiceLocator <Engineer.EMF.Sprint>().locate();
            var           sprints       = sprintService.ListAll();

            sprints.Insert(0, new Engineer.EMF.Sprint());
            Sprint.DataSource = sprints;
            Sprint.DataBind();
        }