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 DevExpress.XtraEditors; namespace Lskj.SweepCodeExe.Control { public partial class SweepControl : UserControl { public SweepControl() { InitializeComponent(); } /// /// 控件 /// /// The title label object. public ButtonEdit ObjButtonEdit { get { return buttonEdit1; } } /// /// 控件的输入值 /// /// The title label object. public string ObjSweepControlText { get { return buttonEdit1.Text; } } /// /// 标题对象 /// /// The title label object. public Label TitleLabelObj { get { return lbTitle; } } /// /// 设置控件的排序值 /// /// The title label object. public string orderId; /// /// 控件公共回车事件 /// /// The KeyEventHandler KeyDown. public event KeyEventHandler KeyDown; /// /// 字体大小 /// /// The size of the control. public int FontSize { get { return FontSize; } set { if (value > 0) { this.lbTitle.Font = new Font(this.lbTitle.Font.FontFamily, value); this.buttonEdit1.Font = new Font(this.buttonEdit1.Font.FontFamily, value); } } } private void buttonEdit1_KeyDown(object sender, KeyEventArgs e) { if (KeyDown != null) { KeyDown(this, e); } } } }