aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-09-16 15:18:27 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-09-16 15:18:27 +0200
commit6847840a3bc4b4df9bfdceea0f5ed80c9e109b91 (patch)
tree6237973dd3ba7ac67a6ad433a6f9979c59e86c99 /src/GraphicObjects
parent9d6c19a3a9890c348fda39734e83b4eb69533a69 (diff)
typo and debug
Diffstat (limited to 'src/GraphicObjects')
-rw-r--r--src/GraphicObjects/TemplatedContainer.cs18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/GraphicObjects/TemplatedContainer.cs b/src/GraphicObjects/TemplatedContainer.cs
index a19f6c28..56217419 100644
--- a/src/GraphicObjects/TemplatedContainer.cs
+++ b/src/GraphicObjects/TemplatedContainer.cs
@@ -26,15 +26,19 @@ namespace go
{
public abstract class TemplatedContainer : TemplatedControl
{
+ #region CTOR
+ public TemplatedContainer () : base(){}
+ #endregion
+
[XmlIgnore]public abstract GraphicObject Content{ get; set;}
- protected override void loadTemplate (GraphicObject template)
+ #region GraphicObject overrides
+ public override void ClearBinding ()
{
- base.loadTemplate (template);
- }
+ if (Content != null)
+ Content.ClearBinding ();
- public TemplatedContainer () : base()
- {
+ base.ClearBinding ();
}
public override GraphicObject FindByName (string nameToFind)
{
@@ -43,6 +47,9 @@ namespace go
return Content == null ? null : Content.FindByName (nameToFind);
}
+ #endregion
+
+ #region IXmlSerialisation Overrides
public override void ReadXml(System.Xml.XmlReader reader)
{
using (System.Xml.XmlReader subTree = reader.ReadSubtree ()) {
@@ -90,6 +97,7 @@ namespace go
(Content as IXmlSerializable).WriteXml(writer);
writer.WriteEndElement();
}
+ #endregion
}
}