aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/TemplatedControl.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-08-05 03:59:33 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2016-08-05 03:59:33 +0200
commit4ca12da2740078a292600736c60c09897263ef95 (patch)
tree28d4441c12924165c45725b94d3e0cfe6104ffde /src/GraphicObjects/TemplatedControl.cs
parent351960c268b3a648c501d429521352f4fbe47535 (diff)
ItemTemplate class derived from IMLStream.
replace xmlLoadingCount by xmlLoading. modifié : src/GraphicObjects/ListBox.cs modifié : src/GraphicObjects/TemplatedControl.cs modifié : src/IMLStream.cs modifié : src/Interface.cs
Diffstat (limited to 'src/GraphicObjects/TemplatedControl.cs')
-rw-r--r--src/GraphicObjects/TemplatedControl.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/GraphicObjects/TemplatedControl.cs b/src/GraphicObjects/TemplatedControl.cs
index 590ca84b..d3feb1d2 100644
--- a/src/GraphicObjects/TemplatedControl.cs
+++ b/src/GraphicObjects/TemplatedControl.cs
@@ -56,7 +56,7 @@ namespace Crow
#region CTOR
public TemplatedControl () : base()
{
- if (Interface.XmlLoaderCount > 0)
+ if (Interface.CurrentInterface.XmlLoading)
return;
loadTemplate ();
}
@@ -64,7 +64,7 @@ namespace Crow
string _template;
string _itemTemplate;
- protected Dictionary<string, IMLStream> itemTemplates;
+ protected Dictionary<string, ItemTemplate> itemTemplates;
[XmlAttributeAttribute][DefaultValue(null)]
public string Template {
@@ -151,10 +151,10 @@ namespace Crow
itemTmp = xr.ReadInnerXml ();
if (itemTemplates == null)
- itemTemplates = new Dictionary<string, IMLStream> ();
+ itemTemplates = new Dictionary<string, ItemTemplate> ();
//TODO:check encoding
- itemTemplates[dataType] = new IMLStream (Encoding.UTF8.GetBytes(itemTmp));
- itemTemplates [dataType].Datas = datas;
+ itemTemplates[dataType] = new ItemTemplate (Encoding.UTF8.GetBytes(itemTmp));
+ itemTemplates [dataType].CreateExpandDelegate(dataType, datas);
continue;
}