Source/Editors/IpAddressInput.cs

(开头部分) 32KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

#if FRAMEWORK20
using System;
using System.Text;
using System.ComponentModel;
using DevComponents.DotNetBar;
using System.Windows.Forms;
using System.Drawing;
using System.Collections;

namespace DevComponents.Editors
{
    /// <summary>
    /// Control for input of the integer value.
    /// </summary>
    [ToolboxBitmap(typeof(DotNetBarManager), "IpAddressInput.ico"), ToolboxItem(true), Designer(typeof(Design.IpAddressInputDesigner))]
    public class IpAddressInput : VisualControlBase, ICommandSource
    {
        #region Events
        /// <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;

        /// <summary>
        /// Occurs when Value property has changed.
        /// </summary>
        public event EventHandler ValueChanged;
        #endregion

        #region Constructors
        /// <summary>
        /// Initializes a new instance of the IpAddressInput class.
        /// </summary>
        public IpAddressInput():base()
        {
            _ButtonClear = new InputButtonSettings(this);
            _ButtonDropDown = new InputButtonSettings(this);
            _ButtonFreeText = new InputButtonSettings(this);
            _IpGroup = this.RootVisualItem as IpAddressGroup;
        }
        #endregion

        #region Internal Implementation
        private IpAddressGroup _IpGroup = null;

        protected override VisualItem CreateRootVisual()
        {
            IpAddressGroup group = new IpAddressGroup();
            group.SelectNextInputCharacters = ".";
            group.ValueChanged += new EventHandler(InputItemValueChanged);
            return group;
后面还有 800 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。