using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; namespace Core.StlMes.Client.Mcp.Control.Base { public class ControlRadioButton : RadioButton { private int num = 1; protected override void OnClick(EventArgs e) { if (this.Checked) { num = 0; } else { num = 1; } base.OnClick(e); num++; if (num % 2 == 0) { this.Checked = true; } else { this.Checked = false; } } } }