private void CheckBox_CheckedChanged(object sender, EventArgs e, StickAngle x, StickAngle y) { this.StickCheckBoxes_ChangeChecked(sender, e); if (((CheckBox)sender).Checked) { this.StickCheckBox_StickTiltChanged((byte)x, (byte)y); } else { this.StickCheckBox_StickTiltChanged((byte)StickAngle.NEUTRAL, (byte)StickAngle.NEUTRAL); } }
/// <summary> /// /// </summary> /// <param name="targetStick">An ID of stick on which this operation is performed.</param> /// <param name="targetXAngle">The position of stick in X direction, after this operation is performed.</param> /// <param name="targetYAngle">The position of stick in Y direction, after this operation is performed.</param> public OperateStick(StickID targetStick, StickAngle targetXAngle, StickAngle targetYAngle) : this(targetStick, (byte)targetXAngle, (byte)targetYAngle) { }