ATMLCommonLibrary.controls.collection.CollectionControl.ControlsToData C# (CSharp) Метод

ControlsToData() приватный Метод

private ControlsToData ( ) : void
Результат void
        private void ControlsToData()
        {
            if (collection == null)
                collection = new Collection();
            collection.ConfidenceSpecified = chkConfidence.Checked;
            collection.ResolutionSpecified = chkResolution.Checked;
            if (collection.ConfidenceSpecified)
                collection.Confidence = edtConfidence.GetValue<double>();
            if (collection.ResolutionSpecified)
                collection.Resolution = edtResolution.GetValue<double>();
            collection.defaultStandardUnit = standardUnitControl.StandardUnit;
            collection.defaultNonStandardUnit = edtNonStandardUnit.GetValue<string>();
            collection.defaultUnitQualifier = cmbQualifier.SelectedItem as String;
            collection.Range = rangeLimitControl.Limit;
            collection.ErrorLimits = errorLimitControl.Limit;

            collection.Item = null;
            if (collectionListControl.Items.Count > 0)
            {
                collection.Item = collectionListControl.CollectionItems;
            }
        }