基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
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;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
|
||||
namespace Lskj.SweepCode.Control
|
||||
{
|
||||
public partial class SweepControl : UserControl
|
||||
{
|
||||
public SweepControl()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 控件
|
||||
/// </summary>
|
||||
/// <value>The title label object.</value>
|
||||
public ButtonEdit ObjButtonEdit { get { return buttonEdit1; } }
|
||||
/// <summary>
|
||||
/// 控件的输入值
|
||||
/// </summary>
|
||||
/// <value>The title label object.</value>
|
||||
public string ObjSweepControlText { get { return buttonEdit1.Text; } }
|
||||
/// <summary>
|
||||
/// 标题对象
|
||||
/// </summary>
|
||||
/// <value>The title label object.</value>
|
||||
public Label TitleLabelObj { get { return lbTitle; } }
|
||||
/// <summary>
|
||||
/// 设置控件的排序值
|
||||
/// </summary>
|
||||
/// <value>The title label object.</value>
|
||||
public string orderId;
|
||||
/// <summary>
|
||||
/// 控件公共回车事件
|
||||
/// </summary>
|
||||
/// <value>The KeyEventHandler KeyDown.</value>
|
||||
public event KeyEventHandler KeyDown;
|
||||
|
||||
/// <summary>
|
||||
/// 字体大小
|
||||
/// </summary>
|
||||
/// <value>The size of the control.</value>
|
||||
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)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (KeyDown != null)
|
||||
{
|
||||
KeyDown(this, e);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user