private void activateButton_Click(object sender, System.EventArgs e) { bool bypass = false; mydsp.getBypass(ref bypass); mydsp.setBypass(!bypass); if (bypass) { activateButton.Text = "Deactivate"; } else { activateButton.Text = "Activate"; } }
private void activateButton_Click(object sender, System.EventArgs e) { bool bypass = false; mydsp.getBypass(ref bypass); mydsp.setBypass(!bypass); if (bypass) { activateButton.Text = "Deactivate"; } else { activateButton.Text = "Activate"; } }