------ #### SuperDesign V3.0.2412.2001 - *.[新增]新增程序更新日志设置和自动发布功能。 - *.[修复]修复Post数据格式不正确时双击文本框会导致软件闪退的BUG。
54 lines
1.5 KiB
C#
54 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace AutocompleteMenuNS
|
|
{
|
|
public class SelectingEventArgs : EventArgs
|
|
{
|
|
public AutocompleteItem Item { get; internal set; }
|
|
public bool Cancel { get; set; }
|
|
public int SelectedIndex { get; set; }
|
|
public bool Handled { get; set; }
|
|
}
|
|
|
|
public class SelectedEventArgs : EventArgs
|
|
{
|
|
public AutocompleteItem Item { get; internal set; }
|
|
public Control Control { get; set; }
|
|
}
|
|
|
|
public class HoveredEventArgs : EventArgs
|
|
{
|
|
public AutocompleteItem Item { get; internal set; }
|
|
}
|
|
|
|
|
|
public class PaintItemEventArgs : PaintEventArgs
|
|
{
|
|
public RectangleF TextRect { get; internal set; }
|
|
public StringFormat StringFormat { get; internal set; }
|
|
public Font Font { get; internal set; }
|
|
public bool IsSelected { get; internal set; }
|
|
public bool IsHovered { get; internal set; }
|
|
public Colors Colors { get; internal set; }
|
|
|
|
public PaintItemEventArgs(Graphics graphics, Rectangle clipRect):base(graphics, clipRect)
|
|
{
|
|
}
|
|
}
|
|
|
|
public class WrapperNeededEventArgs : EventArgs
|
|
{
|
|
public Control TargetControl { get; private set; }
|
|
public ITextBoxWrapper Wrapper { get; set; }
|
|
|
|
public WrapperNeededEventArgs(Control targetControl)
|
|
{
|
|
this.TargetControl = targetControl;
|
|
}
|
|
}
|
|
}
|