ATMLCommonLibrary.controls.resource.ResourcePortSelectionForm.SetListItemCheckState C# (CSharp) 메소드

SetListItemCheckState() 개인적인 메소드

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