diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2017-08-26 10:24:39 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2017-08-26 10:24:39 +0200 |
| commit | 4b39241bad2eb55a91305c4aa5197c1640e81c48 (patch) | |
| tree | c7c69917b6d2ac1ec985c9cddd5f66961c0f26cd /src/GraphicObjects/TemplatedControl.cs | |
| parent | da33782c4ab475d0e8c1216f13ecbff2450ec546 (diff) | |
remove Initialise, currentInterface is set by instanciator
Diffstat (limited to 'src/GraphicObjects/TemplatedControl.cs')
| -rw-r--r-- | src/GraphicObjects/TemplatedControl.cs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/GraphicObjects/TemplatedControl.cs b/src/GraphicObjects/TemplatedControl.cs index 0461a8ee..b0d752ed 100644 --- a/src/GraphicObjects/TemplatedControl.cs +++ b/src/GraphicObjects/TemplatedControl.cs @@ -59,7 +59,7 @@ namespace Crow if (string.IsNullOrEmpty(_template)) loadTemplate (); else - loadTemplate (CurrentInterface.Load (_template)); + loadTemplate (currentInterface.Load (_template)); } } [XmlAttributeAttribute()][DefaultValue("Templated Control")] @@ -73,11 +73,6 @@ namespace Crow } } #region GraphicObject overrides - public override void Initialize () - { - loadTemplate (); - base.Initialize (); - } public override GraphicObject FindByName (string nameToFind) { //prevent name searching in template @@ -107,7 +102,7 @@ namespace Crow if (template == null) { if (!Interface.DefaultTemplates.ContainsKey (this.GetType ().FullName)) throw new Exception (string.Format ("No default template found for '{0}'", this.GetType ().FullName)); - this.SetChild (CurrentInterface.Load (Interface.DefaultTemplates[this.GetType ().FullName])); + this.SetChild (currentInterface.Load (Interface.DefaultTemplates[this.GetType ().FullName])); }else this.SetChild (template); } |