diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-23 13:25:37 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-23 13:25:37 +0100 |
| commit | 0e7aaef3655c455094df9a6a4580ad0aff8519a1 (patch) | |
| tree | cc4c0241ae0a6f40c2858f72645e8328f26d5a5a /src/Interface.cs | |
| parent | a2a18e264a8a2d586f2c058ebb5b2b15b745804e (diff) | |
rename CurrentInterface to IFace
Diffstat (limited to 'src/Interface.cs')
| -rw-r--r-- | src/Interface.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Interface.cs b/src/Interface.cs index ee95eeb5..5174e37e 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -344,12 +344,20 @@ namespace Crow /// <param name="imlFragment">a valid IML string</param> public GraphicObject LoadIMLFragment (string imlFragment) { lock (UpdateMutex) { - GraphicObject tmp = Instantiator.CreateFromImlFragment (this, imlFragment).CreateInstance(); + GraphicObject tmp = CreateITorFromIMLFragment (imlFragment).CreateInstance(); AddWidget (tmp); return tmp; } } /// <summary> + /// Add the content of the IML fragment to the graphic tree of this interface + /// </summary> + /// <returns>return the new instance for convenience, may be ignored</returns> + /// <param name="imlFragment">a valid IML string</param> + public Instantiator CreateITorFromIMLFragment (string imlFragment) { + return Instantiator.CreateFromImlFragment (this, imlFragment); + } + /// <summary> /// Create an instance of a GraphicObject and add it to the GraphicTree of this Interface /// </summary> /// <returns>new instance of graphic object created</returns> |