using System.ComponentModel;
using System.ComponentModel.Design;
using System.Windows.Forms;
namespace ProductionSystem_UserControl.CompositeControls
{
[Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(IDesigner))]
public partial class MyGroupControl : UserControl
{
public MyGroupControl()
{
SetStyle(ControlStyles.ContainerControl | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw, true);
}
#region 自定义属性
///
/// 编码
///
[Category("自定义属性"), Description("编码")]
public string LblGroupCode
{
get { return lblGroupTitle.Tag?.ToString(); }
set { lblGroupTitle.Tag = value; }
}
///
/// 标题
///
private string _lblGroupTitle = "MyGroupControl";
[Category("自定义属性"), Description("标题")]
public string GroupTitle
{
get { return lblGroupTitle.Text; }
set
{
_lblGroupTitle = value;
lblGroupTitle.Text = _lblGroupTitle;
}
}
#endregion
}
}