ATMLCommonLibrary.controls.physical.PhysicalTypeErrorLimitControl.cbULPrefix_SelectedValueChanged C# (CSharp) Méthode

cbULPrefix_SelectedValueChanged() private méthode

private cbULPrefix_SelectedValueChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void
        private void cbULPrefix_SelectedValueChanged( object sender, EventArgs e )
        {
            if (edtULValue.Quantity == null)
                edtULValue.Quantity = new Quantity();
            if (edtULValue.Quantity.Unit == null)
                edtULValue.Quantity.Unit = new StandardUnit();
            edtULValue.Quantity.Unit.Prefix = cbULPrefix.SelectedValue as string;
            if (_errorLimit != null)
                edtErrorLimit.Text = _errorLimit.ToString();
        }