Esempio n. 1
0
        private void ShiftRegisterTypeComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            InstrType t = InstrType.AMSR;

            /* JFL added, type changes within the SR/LM families are supported */
            if (det.Id.SRType.IsListMode())
            {
                System.Enum.TryParse <InstrType>((string)ShiftRegisterTypeComboBox.SelectedItem, true, out t);
            }
            else
            {
                t = InstrTypeExtensions.INCC5ComboBoxStringToType((string)ShiftRegisterTypeComboBox.SelectedItem);
            }
            if (det.Id.SRType != t)
            {
                det.Id.modified = true;
            }
            det.Id.SRType = t;

            SecondGateLengthLabel.Visible   = (t == InstrType.DGSR);
            SecondGateLengthTextBox.Visible = (t == InstrType.DGSR);
            SetBaudRateSelectorVisibility(t.IsSRWithVariableBaudRate());
        }