private void del() { STParticipant data = GetSelectionData(); if (data.idpart > 0) { string text = string.Format("Вы действительно желаете удалить тренера: {0} {1} {2}", data.family, data.name, data.payname); if (MessageBox.Show(text, "Внимание!", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK) { if (clParticipant.Delete(data)) { init_data(); } } } }