ATMLCommonLibrary.controls.equipment.TerminalBlockControl.ControlsToData C# (CSharp) Method

ControlsToData() protected method

protected ControlsToData ( ) : void
return void
        protected override void ControlsToData()
        {
            if (_item == null)
                _item = new TestEquipmentTerminalBlocksTerminalBlock();
            base.ControlsToData();
            var tb = _item as TestEquipmentTerminalBlocksTerminalBlock;
            if (tb != null)
            {
                if (InterfaceportList.Ports != null && InterfaceportList.Ports.Count > 0)
                {
                    tb.Interface = new Interface();
                    tb.Interface.Ports = InterfaceportList.Ports;
                }
                else
                {
                    tb.Interface = null;
                }
            }
        }