public ControlPressure() { InitializeComponent(); Unit = PressureUnit.Bar; Minimum2 = Pressure.Zero; Maximum2 = Pressure.FromBars(10000); Minimum = (decimal)Minimum2.As(unit); Maximum = (decimal)Maximum2.As(unit); }