SVN-Revision: r654
This commit is contained in:
cyf
2025-05-30 09:40:02 +00:00
parent bfafcd8b3a
commit 2db4a0fadf
14 changed files with 295 additions and 244 deletions
+5 -15
View File
@@ -16,6 +16,8 @@ using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraEditors.Repository;
using System.Reflection;
namespace Lskj.Control
{
@@ -37,12 +39,13 @@ namespace Lskj.Control
/// </summary>
/// <value>The label.</value>
public Label Label { get { return lblText; } }
public LabelDateEdit()
{
InitializeComponent();
}
/// <summary>
/// <para>说明:设置控件显示文本</para>
/// <para>创建人:龚宇超</para>
@@ -204,17 +207,4 @@ namespace Lskj.Control
/// <para>版本:1.0</para>
/// </summary>
/// <param name="formatString">The format string.</param>
public void DateFormat(string formatString)
{
if (!string.IsNullOrWhiteSpace(formatString))
{
this.txtEdit.Properties.DisplayFormat.FormatString = this.txtEdit.Properties.EditFormat.FormatString = this.txtEdit.Properties.Mask.EditMask = formatString;
this.txtEdit.Properties.DisplayFormat.FormatType = this.txtEdit.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Custom;
}
}
}
}
publi