private void workWithExBut_Click(object sender, EventArgs e) { if (_currentSettings.Count == 0) MessageBox.Show("Тренажер не настроен. Сначала настройте тренажер", "Предупреждение", MessageBoxButtons.OK, MessageBoxIcon.Warning); else { WorkWithExercises workWithEx = new WorkWithExercises(); workWithEx.Owner = this; workWithEx.Show(); } }