ATMLCommonLibrary.controls.physical.PhysicalTypeRangeControl.ControlsToData C# (CSharp) Method

ControlsToData() protected method

protected ControlsToData ( ) : void
return void
        protected void ControlsToData()
        {
            if (_rangingInformation == null)
                _rangingInformation = new RangingInformation();
            _rangingInformation.FromQuantity = edtLLValue.Quantity;
            _rangingInformation.ToQuantity = edtULValue.Quantity;

            if (_rangingInformation.FromQuantity.Unit.HasPrefix())
                cbLLPrefix.SelectedValue = _rangingInformation.FromQuantity.Unit.Prefix;
            else
                cbLLPrefix.SelectedIndex = -1;

            if (_rangingInformation.FromQuantity.Unit.HasUnit())
                cbLLUnit.SelectedValue = _rangingInformation.FromQuantity.Unit.Unit;
            else
                cbLLUnit.SelectedIndex = -1;
        }