private void deleteBtn_Click(object sender, EventArgs e) { if (DistillationLogic.CanBeDeleted(_distillation)) { DistillationLogic.DeleteDistillation(_distillation); Close(); } else { MessageBox.Show("Pálení nebylo smazáno, není starší více než 10 let.", "Upozorneni", MessageBoxButtons.OK, MessageBoxIcon.Information); } }