public void OTCYRelP() { if (isPowerOn && (otcBtn.YRelBtn == false)) { otcBtn.YRelBtn = true; otcxyz.YRelBtnPress(); } }
private void checkBox2_CheckedChanged(object sender, EventArgs e) { if (checkBox2.Checked == true) { otcxyz.YRelBtnPress(); } else { otcxyz.YRelBtnRelease(); } }