ATMLCommonLibrary.controls.IndentificationNumbersListControl.ControlsToData C# (CSharp) Method

ControlsToData() public method

public ControlsToData ( ) : void
return void
        public void ControlsToData()
        {
            if (Items.Count == 0)
                _identificationNumbers = null;
            else
            {
                if (_identificationNumbers == null)
                    _identificationNumbers = new List<IdentificationNumber>();
                _identificationNumbers.Clear();
                foreach (ListViewItem lvi in Items)
                {
                    _identificationNumbers.Add(lvi.Tag as IdentificationNumber);
                }
            }
        }