protected void DataToControls()
{
if (_rangingInformation != null)
{
edtLLValue.Quantity = _rangingInformation.FromQuantity;
edtULValue.Quantity = _rangingInformation.ToQuantity;
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;
if (_rangingInformation.ToQuantity.Unit.HasPrefix())
cbULPrefix.SelectedValue = _rangingInformation.ToQuantity.Unit.Prefix;
else
cbULPrefix.SelectedIndex = -1;
if (_rangingInformation.ToQuantity.Unit.HasUnit())
cbULUnit.SelectedValue = _rangingInformation.ToQuantity.Unit.Unit;
else
cbULUnit.SelectedIndex = -1;
if (_rangingInformation.ErrorLimit != null)
{
edtErrorLimit.Text = _rangingInformation.ErrorLimit.ToString();
edtErrorLimit.Tag = _rangingInformation.ErrorLimit;
}
}
}