protected ParameterFunction(MeasurableParameter measurableParameter) { MeasurableParameter = measurableParameter; CurrentFunctionValue = MeasurableParameter.Optimal; Random = new Random(); Weather.WeatherTypeChanged += @enum => { WeatherType = @enum; }; }
public void SetWeatherType(WeatherTypesEnum weatherType) { WeatherType = weatherType; }
public static void SetWeather(WeatherTypesEnum type) { WeatherType = type; OnWeatherTypeChanged(); }