private void btnEditCnlNum_Click(object sender, EventArgs e) { if (triggerOptions != null) { if (FrmRangeEdit.EditRange(triggerOptions.CnlNums)) { txtCnlNum.Text = RangeUtils.RangeToStr(triggerOptions.CnlNums); txtCnlNum.ForeColor = Color.FromKnownColor(KnownColor.WindowText); if (txtCnlNum.Text == "") { chkSingleQuery.Checked = false; chkSingleQuery.Enabled = false; } else { chkSingleQuery.Enabled = true; } OnTriggerOptionsChanged(); } } txtCnlNum.Select(); txtCnlNum.DeselectAll(); }
private void btnEditDeviceNum_Click(object sender, EventArgs e) { if (eventTiggerOptions != null) { if (FrmRangeEdit.EditRange(eventTiggerOptions.DeviceNums)) { txtDeviceNum.Text = RangeUtils.RangeToStr(eventTiggerOptions.DeviceNums); txtDeviceNum.ForeColor = Color.FromKnownColor(KnownColor.WindowText); OnEventTriggerOptionsChanged(); } } txtDeviceNum.Select(); txtDeviceNum.DeselectAll(); }