blob: 9295820bc8cf49bd662f46f37a9a4de03944da4c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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);
}
}
}
|