using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Mesnac.Controls.ChemicalWeighing
{
[DefaultEvent("OnSwitchChanged")]
[Description("一个开关控件,可以在开关两种状态之间进行选择")]
public partial class HslSwitch : UserControl
{
public HslSwitch()
{
InitializeComponent();
this.sf = new StringFormat();
this.sf.Alignment = StringAlignment.Center;
this.sf.LineAlignment = StringAlignment.Center;
base.SetStyle(ControlStyles.UserPaint | ControlStyles.SupportsTransparentBackColor, true);
base.SetStyle(ControlStyles.ResizeRedraw, true);
base.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
base.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
base.AutoScaleMode = AutoScaleMode.None;
this.BackColor = Color.Transparent;
this.Cursor = Cursors.Hand;
base.Name = "HslSwitch";
base.ResumeLayout(false);
}
///
/// 开关按钮发生变化的事件
///
// Token: 0x14000009 RID: 9
// (add) Token: 0x06000775 RID: 1909 RVA: 0x00042DC0 File Offset: 0x00040FC0
// (remove) Token: 0x06000776 RID: 1910 RVA: 0x00042DF8 File Offset: 0x00040FF8
[Category("Action")]
[Description("点击了按钮开发后触发")]
public event Action