private void panel_OnDeletePlanification(object sender, EventArgs e) { m_lnkAjouterPlanification.Focus(); if (CFormAlerte.Afficher(I.T("Delete this planning ?|30008"), EFormAlerteType.Question) == DialogResult.Yes) { CPanelIncorporePanelPlanification lePanel = (CPanelIncorporePanelPlanification)sender; lePanel.Parent.Controls.Remove(lePanel); lePanel.Dispose(); lePanel = null; } }