static void Main() { string s; while ((s = Console.ReadLine()) != null) { InputValues.Add(s); } ReadConsoleOutput rd = new ReadConsoleOutput(); rd.ParseInputList(); }
public void ParseInputList() { foreach (var input in InputValues) { if (input.StartsWith("Temperature")) { ReadConsoleOutput rd = new ReadConsoleOutput(); rd.ReadTemperature(input); } if (input.StartsWith("Humidity")) { ReadConsoleOutput rd = new ReadConsoleOutput(); rd.ReadHumidity(input); } } }