public SettingsView(WeatherModel m) { model = m; InitializeComponent(); currentCities = model.GetAllCitiesNames(); foreach (var c in currentCities) { listBoxCities.Items.Add(c); } }
public WeatherView() { InitializeComponent(); model = new WeatherModel(this); }