ATMLCommonLibrary.controls.switching.SwitchControl.DataToControl C# (CSharp) Method

DataToControl() protected method

protected DataToControl ( ) : void
return void
        protected void DataToControl()
        {
            var @switch = _item as Switch;
            if (@switch != null)
            {
                if (@switch.Interface != null)
                {
                    if (@switch.Interface.Ports != null)
                    {
                        foreach (Port port in @switch.Interface.Ports)
                        {
                            AddInterfacePort(port);
                        }
                    }
                }

                if (@switch.Connections != null)
                {
                    foreach (SwitchRelaySetting srs in @switch.Connections)
                    {
                        AddConnection(srs);
                    }
                }
            }
        }