diff options
| author | MichaelTheShifter <[email protected]> | 2016-07-20 13:52:12 -0400 |
|---|---|---|
| committer | MichaelTheShifter <[email protected]> | 2016-07-20 13:52:12 -0400 |
| commit | b52090021ff0ae61db652e8a486cbff6732f5ec5 (patch) | |
| tree | d6b3fa622525e293f715c963e46cb91465b4a064 /source/WindowsFormsApplication1/Engine/Lua_Interp.cs | |
| parent | 64aae03a9b08a10ace6366008093e95ab5e99945 (diff) | |
| download | shiftos-c--b52090021ff0ae61db652e8a486cbff6732f5ec5.tar.gz shiftos-c--b52090021ff0ae61db652e8a486cbff6732f5ec5.tar.bz2 shiftos-c--b52090021ff0ae61db652e8a486cbff6732f5ec5.zip | |
Move ShiftUI designer to ShiftOS and add
prober for ShiftOS to allow ShiftUI designer to design ShiftOS forms.
Diffstat (limited to 'source/WindowsFormsApplication1/Engine/Lua_Interp.cs')
| -rw-r--r-- | source/WindowsFormsApplication1/Engine/Lua_Interp.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/WindowsFormsApplication1/Engine/Lua_Interp.cs b/source/WindowsFormsApplication1/Engine/Lua_Interp.cs index fabc1be..d36b4d9 100644 --- a/source/WindowsFormsApplication1/Engine/Lua_Interp.cs +++ b/source/WindowsFormsApplication1/Engine/Lua_Interp.cs @@ -1466,9 +1466,7 @@ end"); /// <returns>The converted widget.</returns> public static Widget ToWidget(this System.Windows.Forms.Control ctrl) { - string json = JsonConvert.SerializeObject(ctrl); - json = json.Replace("Control", "Widget"); - return JsonConvert.DeserializeObject<Widget>(json); + return new Controls.WinFormsHost(ctrl); } } } |
