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; namespace Core.Mes.Client.Comm.Control { /// /// 主要用于FlowLayoutPanel /// public partial class LabelCheckBox : UserControl, LabelControlInterface { public LabelCheckBox() { InitializeComponent(); } [Browsable(true), Category("原始系统控件")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public CheckBox CheckBox { get { return this.checkBox1; } } [Browsable(true), Category("外观")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public bool Checked { get { return this.checkBox1.Checked; } set { this.checkBox1.Checked = value; } } [Browsable(true), Category("外观")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public string Caption { get { return this.checkBox1.Text; } set { this.checkBox1.Text = value; } } private void checkBox1_CheckedChanged(object sender, EventArgs e) { if (DataBindings["Checked"] != null) { DataBindings["Checked"].WriteValue(); } } } }