ATMLCommonLibrary.controls.bus.VXIControl.ControlsToData C# (CSharp) Метод

ControlsToData() защищенный Метод

protected ControlsToData ( ) : void
Результат void
        protected override void ControlsToData()
        {
            if (_bus == null)
                _bus = new VXI();
            base.ControlsToData();
            var vxi = (VXI) _bus;
            vxi.interruptLines = (int) edtInteruptLines.Value;
            vxi.requiredMemory = edtRequiredMemory.GetValue<string>();
            vxi.slotWeight = (double) edtSlotWeight.Value;
            vxi.manufacturerID = edtMfgId.GetValue<string>();
            vxi.modelCode = edtModelCode.GetValue<string>();
            vxi.slots = (int) edtSlots.Value;
            vxi.dynamicallyConfigured = chkDynamicConfig.Checked;
            vxi.deviceCategory =
                (DeviceCategory) Enum.Parse(typeof (DeviceCategory), (string) cmbDeviceCategory.SelectedItem);
            vxi.slotSize = (VXISlotSize) Enum.Parse(typeof (VXISlotSize), (string) cmbSlotSize.SelectedItem);
            vxi.addressSpace =
                (VXIAddressSpace) Enum.Parse(typeof (VXIAddressSpace), (string) cmbVXIAddressSpace.SelectedItem);
            vxi.deviceClass =
                (VXIDeviceClass) Enum.Parse(typeof (VXIDeviceClass), (string) cmbVXIDeviceClass.SelectedItem);
            vxi.DynamicCurrent = vxiDynamicCurrentControl.VXIBackplaneVoltages;
            vxi.ECLTrigger = vxiECLTriggerControl.VXITriggerLines;
            vxi.Keying = vxiKeyingControl.VXIKeying;
            vxi.ModuleCooling = vxiModuleCoolingControl.VXIModuleCooling;
            vxi.PeakCurrent = vxiPeakCurrentControl.VXIBackplaneVoltages;
            vxi.TTLTrigger = vxiTTLTriggerControl.VXITriggerLines;
            vxi.SupportedClockSources = supportedClockSourcesControl.SupportedClockSources;
        }