Beispiel #1
0
        public static void EditEntity <T>(T entity, ScrumrContext context, Guid?projectId = null) where T : Entity
        {
            var properties = new PropertyBag();

            properties.Add("projectId", projectId);

            var editor = EditEntityBase <T> .Create(context, entity, properties);

            editor.Show();
        }
Beispiel #2
0
        public static Feature AddFeature(ScrumrContext context, Guid?sprintId = null)
        {
            var properties = new PropertyBag();

            properties.Add("sprintId", sprintId);

            var editor = EditEntityBase <Feature> .Create(context, null, properties);

            return(editor.GetResult());
        }
Beispiel #3
0
        public static T AddEntity <T>(ScrumrContext context, Guid?projectId = null) where T : Entity
        {
            var properties = new PropertyBag();

            properties.Add("projectId", projectId);

            var editor = EditEntityBase <T> .Create(context, null, properties);

            return((T)editor.GetResult());
        }
Beispiel #4
0
        public static void EditTicket(Ticket ticket, ScrumrContext context)
        {
            var properties = new PropertyBag();

            properties.Add("projectId", ticket.ProjectId);
            properties.Add("featureId", ticket.FeatureId);

            var editor = EditEntityBase <Ticket> .Create(context, ticket, properties);

            editor.Show();
        }
Beispiel #5
0
        public static Ticket AddTicket(ScrumrContext context, Guid?projectId = null, Guid?sprintId = null, Guid?featureId = null)
        {
            var properties = new PropertyBag();

            properties.Add("projectId", projectId);
            properties.Add("sprintId", sprintId);
            properties.Add("featureId", featureId);

            var editor = EditEntityBase <Ticket> .Create(context, null, properties);

            return((Ticket)editor.GetResult());
        }