UltimateZoneBuilder/Source/Plugins/BuilderEffects/Controls/BoolControl.cs

28 lines
767 B
C#
Raw Normal View History

2013-03-18 13:52:27 +00:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace CodeImp.DoomBuilder.BuilderEffects
{
public partial class BoolControl : UserControl
{
public event EventHandler OnValueChanged;
public bool Value { get { return checkBox1.Checked; } set { checkBox1.Checked = value; } }
public string Label { get { return label1.Text; } set { label1.Text = value; } }
public BoolControl() {
InitializeComponent();
}
private void checkBox1_CheckedChanged(object sender, EventArgs e) {
if(OnValueChanged != null) OnValueChanged(this, EventArgs.Empty);
}
}
}