private void OnLstSitesDoubleClick(object sender, EventArgs e) { if (m_lstSites.SelectedIndices.Count > 0) { int index = m_lstSites.SelectedIndices[0]; CSpvSite siteSpv = ((CInfoSiteAlarmeAffichee)m_lstSites.Items[index]).GetSpvSiteByName(m_ctxDonnee); if (siteSpv != null) { CSite site = siteSpv.ObjetTimosAssocie; if (site != null) { CReferenceTypeForm refTypeForm = CFormFinder.GetRefFormToEdit(site.GetType()); if (refTypeForm != null) { IFormNavigable frm = refTypeForm.GetForm(site) as IFormNavigable; Navigateur.AffichePage(frm); } } } } }