Exemplo n.º 1
0
 private void ProcessLeak(NameValueCollection data, WeatherStation station)
 {
     for (var i = 1; i <= 4; i++)
     {
         if (data["leak" + i] != null)
         {
             station.DoLeakSensor(Convert.ToInt32(data["leak" + i], CultureInfo.InvariantCulture), i);
         }
     }
 }