Exemplo n.º 1
0
        public static object FindDiagramsByStory(IDictionary <string, object> story)
        {
            DiagramService service  = (DiagramService) new ServiceLocator <Attachment>().locate();
            var            diagrams = service.FindByStoryID(int.Parse(story["Id"].ToString()));

            return(Utils.SerializeObject(diagrams));
        }
Exemplo n.º 2
0
        protected void gvResult_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            string         Id       = gvResult.DataKeys[Convert.ToInt32(e.CommandArgument)].Values[0].ToString();
            DiagramService dService = (DiagramService) new ServiceLocator <Engineer.EMF.Attachment>().locate();
            var            diagrams = dService.FindByStoryID(int.Parse(Id));

            Diagrams.DataSource = diagrams != null ? diagrams : new List <Engineer.EMF.UserStoryAttachment>();
            Diagrams.DataBind();
            Diagrams.Visible = true;
        }