public ControlMassFlow() { InitializeComponent(); Unit = MassFlowUnit.KilogramPerSecond; Minimum2 = MassFlow.Zero; Maximum2 = MassFlow.FromKilogramsPerSecond(10000); Minimum = (decimal)Minimum2.ToUnit(unit).Value; Maximum = (decimal)Maximum2.ToUnit(unit).Value; }
public ControlPower() { InitializeComponent(); Unit = PowerUnit.Kilowatt; Minimum2 = Power.Zero; Maximum2 = Power.FromKilowatts(10000); Minimum = (decimal)Minimum2.ToUnit(unit).Value; Maximum = (decimal)Maximum2.ToUnit(unit).Value; }
public ControlTemperature() { InitializeComponent(); Unit = TemperatureUnit.DegreeCelsius; Minimum2 = Temperature.FromKelvins(0); Maximum2 = Temperature.FromDegreesCelsius(10000); Minimum = (decimal)Minimum2.ToUnit(unit).Value; Maximum = (decimal)Maximum2.ToUnit(unit).Value; }