ab56a9bcf7
SVN-Revision: r240
57 lines
1.7 KiB
C#
57 lines
1.7 KiB
C#
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 Lskj.Core;
|
|
using System.Diagnostics;
|
|
using System.Text.RegularExpressions;
|
|
using Lskj.Business;
|
|
using Lskj.Business.Impl;
|
|
|
|
namespace Lskj.Control
|
|
{
|
|
public partial class SumPanelControl : UserControl
|
|
{
|
|
public SumPanelControl()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
#region 公共属性
|
|
/// <summary>
|
|
/// 复选框控件
|
|
/// </summary>
|
|
/// <value>The check edit.</value>
|
|
public Label labSumObj { get { return labSum; } }
|
|
#endregion
|
|
/// <summary>
|
|
/// <para>说明:初始化布局</para>
|
|
/// <para>创建人:王一帆</para>
|
|
/// <para>创建日期:2021-01-13 </para>
|
|
/// <para>修改人:</para>
|
|
/// <para>修改日期:</para>
|
|
/// <para>修改备注:</para>
|
|
/// <para>版本:1.0</para>
|
|
/// </summary>
|
|
/// <param name="sender">The source of the event.</param>
|
|
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
|
public void InitControl(int SumPanelX, int ColumnWidth, string SumText)
|
|
{
|
|
try {
|
|
pl_SumRight.Width = this.Width - SumPanelX;
|
|
this.lbTitle.Width = ColumnWidth;
|
|
this.labSum.Text = SumText;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
string Message = ErrorMessage.PromptErrorMessage(ex);
|
|
MessageUtil.Show(Message,ex.Message);
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|