private void lockEnableCheck_CheckedChanged(object sender, EventArgs e) { if (lockEnableCheck.CheckState == CheckState.Checked) { Controller.EngageLock(CavityPanel.CavityName, name); } if (lockEnableCheck.CheckState == CheckState.Unchecked) { Controller.DisengageLock(CavityPanel.CavityName, name); } }