Source/Controls/CheckBoxX.cs
(开头部分) 22KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Drawing;
using System.ComponentModel;
using System.Windows.Forms;
namespace DevComponents.DotNetBar.Controls
{
/// <summary>
/// Represents the Check Box control with extended styles.
/// </summary>
[ToolboxBitmap(typeof(CheckBoxX), "Controls.CheckBoxX.ico"), ToolboxItem(true), DefaultEvent("CheckedChanged"), System.Runtime.InteropServices.ComVisible(false)]
public class CheckBoxX : BaseItemControl, ICommandSource
{
#region Private Variables
private const string DefaultCheckValueUnchecked = "N";
private const string DefaultCheckValueChecked = "Y";
private const object DefaultCheckValueIndeterminate = null;
private CheckBoxItem m_CheckBox = null;
private object m_CheckValue = DefaultCheckValueUnchecked;
private object m_CheckValueUnchecked = DefaultCheckValueUnchecked;
private object m_CheckValueChecked = DefaultCheckValueChecked;
private object m_CheckValueIndeterminate = DefaultCheckValueIndeterminate;
private bool m_ConsiderEmptyStringAsNull = true;
#endregion
#region Events
/// <summary>
/// Occurs before Checked property is changed and allows you to cancel the change.
/// </summary>
public event CheckBoxXChangeEventHandler CheckedChanging;
/// <summary>
/// Occurs after Checked property is changed with extended information.
/// </summary>
public event CheckBoxXChangeEventHandler CheckedChangedEx;
/// <summary>
/// Occurs after Checked property is changed. This event is provided for the Windows Forms data binding support. You can use CheckedChangedEx to get extended information about the changed.
/// </summary>
public event EventHandler CheckedChanged;
/// <summary>
/// Occurs after Checked property is changed. This event is provided for the Windows Forms data binding support. You can use CheckedChangedEx to get extended information about the changed.
/// </summary>
public event EventHandler CheckValueChanged;
#endregion
#region Constructor, Dispose
public CheckBoxX()
{
this.SetStyle(ControlStyles.Selectable, true);
m_CheckBox = new CheckBoxItem();
m_CheckBox.VerticalPadding = 0;
m_CheckBox.Style = eDotNetBarStyle.Office2007;
m_CheckBox.CheckedChanging += new CheckBoxChangeEventHandler(OnCheckedChanging);
m_CheckBox.CheckedChanged += new CheckBoxChangeEventHandler(OnCheckedChanged);
this.HostItem = m_CheckBox;
后面还有 538 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。