public void OTCXRelR() { if (isPowerOn && (otcBtn.XRelBtn == true)) { otcBtn.XRelBtn = false; otcxyz.XRelBtnRelease(); } }
private void checkBox1_CheckedChanged(object sender, EventArgs e) { if (checkBox1.Checked == true) { otcxyz.XRelBtnPress(); } else { otcxyz.XRelBtnRelease(); } }