ATMLCommonLibrary.controls.resource.ResourcePortSelectionForm.SetListItemCheckState C# (CSharp) Method

SetListItemCheckState() private method

private SetListItemCheckState ( Resource resource, Port port, ListViewItem lvi ) : void
resource Resource
port Port
lvi ListViewItem
return void
        private void SetListItemCheckState(Resource resource, Port port, ListViewItem lvi)
        {
            if (sourcePort != null)
            {
                lvi.Checked = (sourcePort.MappedPorts.ContainsKey(resource.name + "." + port.name));
            }
        }