private void btnLimit_Click(object sender, EventArgs e) { PhysicalTypeErrorLimitForm form = new PhysicalTypeErrorLimitForm(); if (_rangingInformation != null) { form.ErrorLimit = _rangingInformation.ErrorLimit; } if (DialogResult.OK == form.ShowDialog()) { ErrorLimit limit = form.ErrorLimit; edtErrorLimit.Text = limit.ToString(); edtErrorLimit.Tag = limit; } }
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; if (_errorLimit != null) { edtErrorLimit.Text = _errorLimit.ToString(); } }