ATMLCommonLibrary.controls.physical.PhysicalTypeRangeControl.cbULUnit_SelectedValueChanged C# (CSharp) Méthode

cbULUnit_SelectedValueChanged() private méthode

private cbULUnit_SelectedValueChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void
        private void cbULUnit_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.Unit = cbULUnit.SelectedValue as string;
        }