2013-12-15 02:50:50 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.Client.EmuHawk
|
|
|
|
|
{
|
|
|
|
|
public class LuaCheckbox : CheckBox
|
|
|
|
|
{
|
|
|
|
|
private void DoLuaClick(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
var parent = Parent as LuaWinform;
|
2017-05-19 16:05:21 +00:00
|
|
|
|
parent?.DoLuaEvent(Handle);
|
2013-12-15 02:50:50 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void OnClick(EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
base.OnClick(e);
|
2016-11-11 16:03:13 +00:00
|
|
|
|
DoLuaClick(this, e);
|
2013-12-15 02:50:50 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|