public void Set(IntegerUnit value) { ignore_changes = true; TextValue.Text = value.Value.ToString(CultureInfo.InvariantCulture); if (value.Unit == UNIT.mm) UnitValue.SelectedIndex = 0; else UnitValue.SelectedIndex = 1; ignore_changes = false; }
public void Set(IntegerUnit value) { ignore_changes = true; TextValue.Text = value.Value.ToString(CultureInfo.InvariantCulture); if (value.Unit == UNIT.mm) { UnitValue.SelectedIndex = 0; } else { UnitValue.SelectedIndex = 1; } ignore_changes = false; }