protected override void UpdateDateInReport(WeatherInfo info) { info = info ?? throw new ArgumentNullException($"The {nameof(info)} can not be null"); this.Info = info.Clone(); ShowReport(); }
protected override void UpdateDateInReport(WeatherInfo info) { info = info ?? throw new ArgumentNullException($"The {nameof(info)} can not be null"); WeatherInfo newInfo = new WeatherInfo(); newInfo = info.Clone(); infoHistory.Add(newInfo); CalculateReportData(); ShowReport(); }