private void setPointAdjustPlusButton_Click(object sender, EventArgs e) { double setPointIncrement = Double.Parse(setPointIncrementBox.Text); lock (Controller.tweakLock) { Controller.AdjustSetPoint(CavityPanel.CavityName, name, setPointIncrement); } }