mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-12-18 08:01:36 +00:00
28 lines
767 B
C#
28 lines
767 B
C#
|
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|