| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- 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 UAS_MES.Entity;
- namespace UAS_MES.CustomControl.CustomCheckBox
- {
- public partial class AutoPrintCheckBox : UserControl
- {
-
- public AutoPrintCheckBox()
- {
- InitializeComponent();
- this.Load += AutoPrintCheckBox_Load;
- }
- private void AutoPrintCheckBox_Load(object sender, EventArgs e)
- {
- if (SystemInf.EnablePrint)
- AutoPrint.Checked = true;
- else
- AutoPrint.Checked = false;
- }
- public bool Checked
- {
- get
- {
- return AutoPrint.Checked;
- }
- set
- {
- AutoPrint.Checked = value;
- }
- }
- public override string Text
- {
- get
- {
- return AutoPrint.Text;
- }
- set
- {
- AutoPrint.Text = value;
- }
- }
- }
- }
|