aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Container.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-01-30 00:28:05 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-01-30 00:28:05 +0100
commitc29275576f75534c9fd109b3d3717ab52ec8415b (patch)
tree2bb12851411af33988a43ea9a35bfe4ee34eba83 /src/GraphicObjects/Container.cs
parente3c509d4a9a27f663a3a95ab697bfdb2e880172d (diff)
- test with both parameterless ctor and with iface param ctorInCodeInstatiation
- CurrentInterface as field
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);