Source/Editors/DoubleInput.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), "DoubleInput.ico"), ToolboxItem(true), Designer(typeof(Design.NumericInputBaseDesigner))]
public class DoubleInput : NumericInputBase
{
#region Private Variables
private VisualDoubleInput _DoubleInput = 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 ParseDoubleValueEventHandler 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 (_DoubleInput != null) _DoubleInput.ProcessClipboardCopy();
}
/// <summary>
/// Pastes the current Clipboard content if possible as the value into the control.
/// </summary>
public virtual void Paste()
{
if (_DoubleInput != null) _DoubleInput.ProcessClipboardPaste();
}
/// <summary>
/// Moves the current control value to the Clipboard.
/// </summary>
public virtual void Cut()
{
if (_DoubleInput != null) _DoubleInput.ProcessClipboardCut();
}
protected override VisualItem CreateRootVisual()
{
VisualInputGroup g = new VisualInputGroup();
VisualDoubleInput i = new VisualDoubleInput();
i.ValueChanged += new EventHandler(InputItemValueChanged);
后面还有 213 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。