| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- 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
- {
- /// <summary>
- /// 主要用于FlowLayoutPanel
- /// </summary>
- 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();
- }
- }
- }
- }
|