//----------------------------------------------------------------------------------------------------- private void m_menuAfficheDetailEtape_Click(object sender, EventArgs e) { CEtapeWorkflow etape = EtapeSelectionnee; if (etape != null) { CFormNavigateur navigateur = CFormNavigateur.FindNavigateur(this); if (navigateur != null) { CReferenceTypeForm refForm = CFormFinder.GetRefFormToEdit(typeof(CEtapeWorkflow)); if (refForm != null) { CFormEditionStandard frm = refForm.GetForm(etape) as CFormEditionStandard; if (frm != null) { navigateur.AffichePage(frm); } } } } }
//------------------------------------------------------------------ private void m_panelWorkflow_DoubleClicSurElement(object sender, EventArgs e) { if (!LockEdition) { EditeCurrentEtape(); } else { CWorkflowEtapeDessin etape = m_panelWorkflow.EtapeSelectionnee; if (etape == null) { return; } CBlocWorkflow bloc = etape.TypeEtape != null ? etape.TypeEtape.Bloc : null; CBlocWorkflowWorkflow blocWorkflow = bloc as CBlocWorkflowWorkflow; if (blocWorkflow != null && blocWorkflow.DbKeyTypeWorkflow != null) { CTypeWorkflow typeWorkflow = new CTypeWorkflow(CSc2iWin32DataClient.ContexteCourant); if (typeWorkflow.ReadIfExists(blocWorkflow.DbKeyTypeWorkflow)) { CFormNavigateur navigateur = CFormNavigateur.FindNavigateur(this); if (navigateur != null) { CReferenceTypeForm refFrm = CFormFinder.GetRefFormToEdit(typeof(CTypeWorkflow)); if (refFrm != null) { CFormEditionStandard frm = refFrm.GetForm(typeWorkflow) as CFormEditionStandard; if (frm != null) { navigateur.AffichePage(frm); } } } } } } }