private Element CreateStoryElement(AgileZenStory story)
        {
            var storyDetails = new StoryDetailsController(_navController, story);
            var element      = new StyledStringElement(story.Owner.Name, story.Text, UITableViewCellStyle.Subtitle);

            element.Accessory = UITableViewCellAccessory.DisclosureIndicator;
            element.Tapped   += storyDetails.PushViewController;
            return(element);
        }
Beispiel #2
0
        private void UpdateRoot(IEnumerable <AgileZenPhase> phases)
        {
            var projectSections = new List <Section>();

            foreach (AgileZenPhase phase in phases)
            {
                var section = new Section(phase.Name, phase.Description);

                foreach (var story in phase.Stories)
                {
                    var storyDetails = new StoryDetailsController(_navController, story, phase);
                    var element      = new StyledStringElement(story.Owner.Name, story.Text, UITableViewCellStyle.Subtitle);
                    element.Accessory = UITableViewCellAccessory.DisclosureIndicator;
                    element.Tapped   += storyDetails.PushViewController;
                    section.Add(element);
                }

                projectSections.Add(section);
            }
            var rootElement = new RootElement("Stories");

            rootElement.Add(projectSections);
            _dv.Root = rootElement;
        }
        private void UpdateRoot(IEnumerable<AgileZenPhase> phases)
        {
            var projectSections = new List<Section>();
            foreach (AgileZenPhase phase in phases) {
                var section = new Section (phase.Name,phase.Description);

                foreach(var story in phase.Stories)
                {
                    var storyDetails = new StoryDetailsController(_navController, story, phase);
                    var element = new StyledStringElement(story.Owner.Name,story.Text,UITableViewCellStyle.Subtitle);
                    element.Accessory = UITableViewCellAccessory.DisclosureIndicator;
                    element.Tapped += storyDetails.PushViewController;
                    section.Add(element);
                }

                projectSections.Add(section);
            }
            var rootElement = new RootElement ("Stories");
            rootElement.Add(projectSections);
            _dv.Root = rootElement;
        }