aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Container.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/GraphicObjects/Container.cs')
-rw-r--r--src/GraphicObjects/Container.cs15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/GraphicObjects/Container.cs b/src/GraphicObjects/Container.cs
index df14b8e2..c7dfd78b 100644
--- a/src/GraphicObjects/Container.cs
+++ b/src/GraphicObjects/Container.cs
@@ -36,17 +36,18 @@ namespace Crow
public class Container : PrivateContainer
{
#region CTOR
- public Container()
- : base()
- {
- }
+ public Container () : base(){}
+ public Container (Interface iface) : base(iface){}
#endregion
- [XmlIgnore]
- public GraphicObject Child {
+ [XmlIgnore]public GraphicObject Child {
get { return child; }
- set { child = value; }
+ set { base.SetChild(value); }
}
+ /// <summary>
+ /// override this to handle specific steps in child addition in derived class,
+ /// and don't forget to call the base.SetChild
+ /// </summary>
public virtual void SetChild(GraphicObject _child)
{
base.SetChild (_child);