private void DataToControls()
{
if (collection != null)
{
chkConfidence.Checked = collection.ConfidenceSpecified;
chkResolution.Checked = collection.ResolutionSpecified;
if (collection.ConfidenceSpecified)
edtConfidence.Value = collection.Confidence;
if (collection.ResolutionSpecified)
edtResolution.Value = collection.Resolution;
standardUnitControl.StandardUnit = collection.defaultStandardUnit;
edtNonStandardUnit.Value = collection.defaultNonStandardUnit;
cmbQualifier.SelectedItem = collection.defaultUnitQualifier;
rangeLimitControl.Limit = collection.Range;
errorLimitControl.Limit = collection.ErrorLimits;
collectionListControl.CollectionItems = collection.Item;
}
}