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

ControlsToData() public method

public ControlsToData ( ) : void
return void
        public void ControlsToData()
        {
            SetValidationState();
            if (!string.IsNullOrWhiteSpace(edtIdModelName.Text))
            {

                if (_identification == null)
                    _identification = new ItemDescriptionIdentification();

                _identification.ModelName = edtIdModelName.GetValue<string>();
                _identification.Version = edtIdVersion.GetValue<string>();
                _identification.designator = edtDesignator.GetValue<string>();
                _identification.IdentificationNumbers = indentificationNumbersListControl.IdentificationNumbers;
                _identification.Manufacturers = manufacturerListControl.Manufacturers;
                //TODO: Address when/if we handle extensions
                _identification.Extension = null;
            }
            else
            {
                _identification = null;
            }
        }