public static void run() { Console.Write("Path: "); var path = Path.GetFullPath($"Task 7/{Console.ReadLine()}"); WeatherDays w = new WeatherDays(); try { w.LoadFromFile(path); Task7 t = new Task7(w); t.CountFoggyDays(); t.CountNoPrecipitationDays(); t.MaximalAtmosphericPressure(); t.MinimalAtmosphericPressure(); } catch (Exception) { Console.WriteLine($"Invalid path {path}"); } }
public Task7(WeatherDays weatherDays) { this.weatherDays = weatherDays; }