diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-11 13:20:27 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-11 13:20:27 +0100 |
| commit | 80dc0221c3455a50b8877f19c4a19043af0042f4 (patch) | |
| tree | 0cb88b57c7316b19720904f90ce375f4838f3c97 /src/GraphicObjects/Window.cs | |
| parent | 523a04de5252ae089e52eeaf9c8d83a5e0676731 (diff) | |
split ProjectNode classes in separate files
Diffstat (limited to 'src/GraphicObjects/Window.cs')
| -rw-r--r-- | src/GraphicObjects/Window.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/GraphicObjects/Window.cs b/src/GraphicObjects/Window.cs index 6a15d016..d95f3d75 100644 --- a/src/GraphicObjects/Window.cs +++ b/src/GraphicObjects/Window.cs @@ -453,6 +453,14 @@ namespace Crow (Parent as Container).Child = null; } } + + public static Window Show (Interface iface, string imlPath, bool modal = false){ + lock (iface.UpdateMutex) { + Window w = iface.AddWidget (imlPath) as Window; + w.Modal = modal; + return w; + } + } } } |