예제 #1
0
        private IEnumerable <Element> GetMatchingStoriesToProject(AgileZenProject project, IEnumerable <AgileZenStory> myStories)
        {
            List <Element> elements = new List <Element>();

            foreach (AgileZenStory story in myStories)
            {
                if (story.Project.Id == project.Id)
                {
                    var element = CreateStoryElement(story);
                    elements.Add(element);
                }
            }
            return(elements);
        }
예제 #2
0
        public ProjectElement(AgileZenProject project) : base(UITableViewCellStyle.Default, "sampleOwnerDrawnElement")
        {
            this.Description = project.Description;
            this.Text        = project.Name;
            this.CreatedTime = project.CreateTime;
            this.Id          = project.Id;

            CGColorSpace colorSpace = CGColorSpace.CreateDeviceRGB();

            gradient = new CGGradient(
                colorSpace,
                new float[] { 0.95f, 0.95f, 0.95f, 1,
                              0.85f, 0.85f, 0.85f, 1 },
                new float[] { 0, 1 });
        }