Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }