public CreateUserStory(Project project) { InitializeComponent(); CurrentPage = this.Title; DataContext = this; _client = new UserStoryClient(); _currentProject = project; PageSetup(); }
public CreateAcceptanceTest(UserStory userStory) { InitializeComponent(); DataContext = this; _client = new UserStoryClient(); CurrentPage = this.Title; CurrentUserStory = userStory; PageSetup(); }
public UserStoryDetails(UserStory selectedUserStory) { InitializeComponent(); CurrentPage = this.Title; DataContext = this; _client = new UserStoryClient(); Permissions = new Permissions((User)Application.Current.Properties["user"], selectedUserStory.Project); CurrentUserStory = selectedUserStory; UserStoryAcceptanceTests.ItemsSource = _client.GetAcceptanceTestsFromUserStory(CurrentUserStory.Project.Id, CurrentUserStory.Id); }
public EditSprintBacklog(Sprint sprint) { InitializeComponent(); CurrentPage = this.Title; DataContext = this; _sprintClient = new SprintClient(); _userStoryClient = new UserStoryClient(); CurrentSprint = sprint; AvailableStories = new ObservableCollection <UserStory>(_userStoryClient.GetAvailableUserStories(sprint.Project.Id)); SprintBacklog = new ObservableCollection <UserStory>(_sprintClient.GetSprintBacklog(sprint.Project.Id, sprint.Id)); }
public ProductBacklog(Project project) { InitializeComponent(); CurrentPage = this.Title; DataContext = this; _client = new UserStoryClient(); CurrentProject = project; Permissions = new Permissions((User)Application.Current.Properties["user"], project); PermissonDragHandler = new PermissonDragHandler(Permissions.ProductOwner); try { var sortedOC = from item in _client.GetUserStories(project.Id) orderby item.Index select item; Backlog = new ObservableCollection <UserStory>(sortedOC.ToList()); } catch (RestResponseErrorException ex) { MessageBoxUtil.ShowErrorBox(ex.Message); } }