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

lvInterface_OnAdd() private method

private lvInterface_OnAdd ( ) : void
return void
        private void lvInterface_OnAdd()
        {
            //------------------------------------------------------------------------------------------------------------------//
            //--- We need to be able to select a port from either the resource interface list or the hardware interface list ---//
            //------------------------------------------------------------------------------------------------------------------//
            var form = new PortSelectionForm(instrument);
            if (DialogResult.OK == form.ShowDialog())
            {
                foreach (Port port in form.SelectedPorts)
                {
                    if (!HasPort(port))
                    {
                        AddInterfacePort(port);
                    }
                }
            }
        }