aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Window.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-18 10:37:11 -0500
committerMichael <[email protected]>2017-02-18 10:37:11 -0500
commit9b8d5861a954610713ae66a53d2ac067991d9b68 (patch)
treee550f758e52ec8ca12357d91c9fa13907e70c4f3 /ShiftOS.WinForms/Window.cs
parent30823a0778614d0f9fd6f82b5d9eb03aab41280d (diff)
downloadshiftos_thereturn-9b8d5861a954610713ae66a53d2ac067991d9b68.tar.gz
shiftos_thereturn-9b8d5861a954610713ae66a53d2ac067991d9b68.tar.bz2
shiftos_thereturn-9b8d5861a954610713ae66a53d2ac067991d9b68.zip
WHOA LUA STUFF :dancer:
Diffstat (limited to 'ShiftOS.WinForms/Window.cs')
-rw-r--r--ShiftOS.WinForms/Window.cs44
1 files changed, 44 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Window.cs b/ShiftOS.WinForms/Window.cs
new file mode 100644
index 0000000..9295820
--- /dev/null
+++ b/ShiftOS.WinForms/Window.cs
@@ -0,0 +1,44 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using ShiftOS.Engine;
+using ShiftOS.Engine.Scripting;
+
+
+namespace ShiftOS.WinForms
+{
+ public partial class Window : UserControl, IShiftOSWindow
+ {
+ public Window()
+ {
+ InitializeComponent();
+ }
+
+ public void OnLoad()
+ {
+ LuaInterpreter.RaiseEvent("on_window_load", this);
+ }
+
+ public void OnSkinLoad()
+ {
+ LuaInterpreter.RaiseEvent("on_window_skin_load", this);
+ }
+
+ public bool OnUnload()
+ {
+ LuaInterpreter.RaiseEvent("on_window_unload", this);
+ return true;
+ }
+
+ public void OnUpgrade()
+ {
+ LuaInterpreter.RaiseEvent("on_window_upgrade", this);
+ }
+ }
+}