private void SetControlStates() { edtSource.Enabled = chkSource.Checked; edtSense.Enabled = chkSense.Checked; }