예제 #1
0
        protected ParameterFunction(MeasurableParameter measurableParameter)
        {
            MeasurableParameter = measurableParameter;
            CurrentFunctionValue = MeasurableParameter.Optimal;
            Random = new Random();

            Weather.WeatherTypeChanged += @enum => 
            {
                WeatherType = @enum;
            };
        }
예제 #2
0
 public void SetWeatherType(WeatherTypesEnum weatherType)
 {
     WeatherType = weatherType;
 }
예제 #3
0
파일: Weather.cs 프로젝트: LexaGal/Plants
 public static void SetWeather(WeatherTypesEnum type)
 {
     WeatherType = type;
     OnWeatherTypeChanged();
 }