private void добавитьГородToolStripMenuItem_Click(object sender, EventArgs e) { var countries = countryDB.GetList(); if (countries.Count == 0) { MessageBox.Show("Вы ещё не добавили страну!"); return; } CityForm cityForm = new CityForm(countryDB, dB); cityForm.ShowDialog(); LoadBox(); }
private void добавитьГородToolStripMenuItem_Click(object sender, EventArgs e) { CityForm cityForm = new CityForm(); cityForm.ShowDialog(); }