private void m_wndListeComportements_DoubleClick(object sender, System.EventArgs e) { Point pt = Cursor.Position; pt = m_wndListeComportements.PointToClient(pt); if (m_wndListeComportements.SelectedItems.Count == 1) { CComportementGenerique comportement = (CComportementGenerique)m_wndListeComportements.SelectedItems[0]; CTimosApp.Navigateur.AffichePage(new CFormEditionComportementGenerique(comportement)); } }
private void m_wndListeComportements_DoubleClick(object sender, System.EventArgs e) { Point pt = Cursor.Position; pt = m_wndListeComportements.PointToClient(pt); if (m_wndListeComportements.SelectedItems.Count == 1) { CComportementGenerique comportement = (CComportementGenerique)m_wndListeComportements.SelectedItems[0]; CReferenceTypeForm refForm = CFormFinder.GetRefFormToEdit(typeof(CComportementGenerique)); if (refForm != null) { CFormEditionStandard form = refForm.GetForm(comportement) as CFormEditionStandard; if (form != null) { CSc2iWin32DataNavigation.Navigateur.AffichePage(form); } } } }