DonkingControlBase/LookupEditor/LookupEditor.cs
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
* Author donking
* http://www.donking-ch.com/
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
namespace DonkingControlBase
{
/// <summary>
/// 自定义LookupEditor,实现INotifyPropertyChanged接口,当值改变执行数据绑定及查询
/// </summary>
public partial class LookupEditor : UserControl, INotifyPropertyChanged
{
public delegate bool ValueChangeHandler(object sender);
public event ValueChangeHandler ChangeEvent;
public string _DisplayMember { set; get; }
private string _text;//文本值
private object _target;
#region
PopupControlHost normoalHost;//ToolStripDropDown下拉控件
LookupContext lookupContext = new LookupContext();//自定义数据控件
private bool isOpen = false;
private MessageFilter mf;
private Point hostPoint;//弹出菜单全局位置
private bool _isOpen = true;//开关
#endregion
#region PopupControlHost
private bool _ChangeRegion = false;
private Double _Opacity = 1.0F; //透明度
private bool _CanResize = true;//改变大小
private bool _OpenFocused = false;
#endregion
/// <summary>
/// 显示文本框的值
/// </summary>
public string DisplayValue
{
get { return this.textBox.Text; }
set { textBox.Text = value; }
}
/// <summary>
/// 用于保存对象
/// </summary>
public object Target
{
get { return _target; }
后面还有 312 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。