示例#1
0
        public void GetWeatherData()
        {
            WeatherData data = WeatherStation.GetMeasurments();

            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("Requested manually: temperature: {0}, humidity: {1}, pressure {2}, rain {3}", data.Temperature, data.Humidity, data.Pressure, data.RainQuantity);
            Console.ResetColor();
        }
示例#2
0
        public void GetWeatherData()
        {
            WeatherData data = WeatherStation.GetMeasurments();

            Console.WriteLine("Requested manually: temperature: {0}, humidity: {1}, pressure {2}", data.Temperature, data.Humidity, data.Pressure);
        }