Source/Editors/IntegerInput.cs

(开头部分) 9KB

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

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

namespace DevComponents.Editors
{
    /// <summary>
    /// Control for input of the integer value.
    /// </summary>
    [ToolboxBitmap(typeof(DotNetBarManager), "IntegerInput.ico"), ToolboxItem(true), Designer(typeof(Design.NumericInputBaseDesigner))]
    public class IntegerInput : NumericInputBase
    {
        #region Private Variables
        private VisualIntegerInput _IntegerInput = null;
        private VisualInputGroup _InputGroup = null;
        #endregion

        #region Events
        /// <summary>
        /// Occurs when ValueObject property is set and it allows you to provide custom parsing for the values.
        /// </summary>
        public event ParseIntegerValueEventHandler ParseValue;

        #endregion

        #region Constructor
        #endregion

        #region Internal Implementation
        /// <summary>
        /// Copies the current value in the control to the Clipboard.
        /// </summary>
        public virtual void Copy()
        {
            if (_IntegerInput != null) _IntegerInput.ProcessClipboardCopy();
        }
        /// <summary>
        /// Pastes the current Clipboard content if possible as the value into the control.
        /// </summary>
        public virtual void Paste()
        {
            if (_IntegerInput != null) _IntegerInput.ProcessClipboardPaste();
        }
        /// <summary>
        /// Moves the current control value to the Clipboard.
        /// </summary>
        public virtual void Cut()
        {
            if (_IntegerInput != null) _IntegerInput.ProcessClipboardCut();
        }

        protected override VisualItem CreateRootVisual()
        {
            VisualInputGroup g = new VisualInputGroup();
            VisualIntegerInput i = new VisualIntegerInput();
            i.ValueChanged += new EventHandler(InputItemValueChanged);
后面还有 204 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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