From aded88831bf64995e568287e45781b47370168e4 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Thu, 4 Dec 2014 22:13:40 -0800 Subject: [PATCH] Added ProjectTask --- .../Common/Reflection.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/CSharp/Plugins/UniversalEditor.Essential/Common/Reflection.cs b/CSharp/Plugins/UniversalEditor.Essential/Common/Reflection.cs index ea6090a9..0cc32846 100644 --- a/CSharp/Plugins/UniversalEditor.Essential/Common/Reflection.cs +++ b/CSharp/Plugins/UniversalEditor.Essential/Common/Reflection.cs @@ -556,6 +556,25 @@ namespace UniversalEditor.Common } } #endregion + #region + { + MarkupTagElement tagTasks = (tagProjectType.Elements["Tasks"] as MarkupTagElement); + if (tagTasks != null) + { + foreach (MarkupElement el in tagTasks.Elements) + { + MarkupTagElement tag = (el as MarkupTagElement); + if (tag == null) continue; + if (tag.FullName != "Task") continue; + + ProjectTask task = new ProjectTask(); + task.Title = tag.Attributes["Title"].Value; + + projtype.Tasks.Add(task); + } + } + } + #endregion listProjectTypes.Add(projtype); }