Add base interface for *CheckBoxEx and *RadioButtonEx controls
This commit is contained in:
parent
56b158e72a
commit
9168b59382
|
@ -3,7 +3,7 @@ using System.Windows.Forms;
|
||||||
|
|
||||||
namespace BizHawk.WinForms.Controls
|
namespace BizHawk.WinForms.Controls
|
||||||
{
|
{
|
||||||
public abstract class CheckBoxExBase : CheckBox
|
public abstract class CheckBoxExBase : CheckBox, ICheckBoxOrRadioEx
|
||||||
{
|
{
|
||||||
[Browsable(false)]
|
[Browsable(false)]
|
||||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
namespace BizHawk.WinForms.Controls
|
||||||
|
{
|
||||||
|
public interface ICheckBoxOrRadioEx
|
||||||
|
{
|
||||||
|
bool Checked { get; set; }
|
||||||
|
}
|
||||||
|
}
|
|
@ -3,7 +3,7 @@ using System.Windows.Forms;
|
||||||
|
|
||||||
namespace BizHawk.WinForms.Controls
|
namespace BizHawk.WinForms.Controls
|
||||||
{
|
{
|
||||||
public abstract class RadioButtonExBase : RadioButton, ITrackedRadioButton
|
public abstract class RadioButtonExBase : RadioButton, ICheckBoxOrRadioEx, ITrackedRadioButton
|
||||||
{
|
{
|
||||||
/// <remarks>use to prevent recursion</remarks>
|
/// <remarks>use to prevent recursion</remarks>
|
||||||
protected bool CheckedChangedCausedByTracker { get; private set; }
|
protected bool CheckedChangedCausedByTracker { get; private set; }
|
||||||
|
|
Loading…
Reference in New Issue