Source/Editors/NumericInputBase.cs
(开头部分) 32KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
#if FRAMEWORK20
using System;
using System.ComponentModel;
using System.Text;
using System.Windows.Forms;
using System.Collections;
using DevComponents.DotNetBar;
using System.Drawing;
namespace DevComponents.Editors
{
/// <summary>
/// Represents an control that allows numeric input.
/// </summary>
[ToolboxItem(false), DefaultEvent("ValueChanged")]
public abstract class NumericInputBase : VisualControlBase, ICommandSource
{
#region Private Variables
private VisualInputGroup _InputGroup = null;
private ButtonItem _PopupItem = null;
private static string _DropDownControlContainerName = "sysPopupControlContainer";
private static string _DropDownItemContainerName = "sysPopupItemContainer";
#endregion
#region Events
/// <summary>
/// Occurs when the Value or IsEmpty property changes.
/// <remarks>
/// This event is not raised when the entered date is earlier than MinDateTime or later than MaxDateTime.
/// </remarks>
/// </summary>
public event EventHandler ValueChanged;
/// <summary>
/// Occurs when the Value or IsEmpty property changes. This event occurs at the same time and has same function as ValueChanged event. It is provided for binding support.
/// </summary>
public event EventHandler ValueObjectChanged;
/// <summary>
/// Occurs when Clear button is clicked and allows you to cancel the default action performed by the button.
/// </summary>
public event CancelEventHandler ButtonClearClick;
/// <summary>
/// Occurs when Drop-Down button that shows calendar is clicked and allows you to cancel showing of the popup.
/// </summary>
public event CancelEventHandler ButtonDropDownClick;
/// <summary>
/// Occurs when ShowCheckBox property is set to true and user changes the lock status of the control by clicking the check-box.
/// </summary>
public event EventHandler LockUpdateChanged;
#endregion
#region Constructor
/// <summary>
/// Initializes a new instance of the NumericInputBase class.
/// </summary>
public NumericInputBase()
: base()
{
_ButtonClear = new InputButtonSettings(this);
_ButtonDropDown = new InputButtonSettings(this);
后面还有 788 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。