Exemplo n.º 1
0
 //---------------------------------------------------
 private void EditeIntervention(CIntervention intervention)
 {
     if (intervention != null)
     {
         CReferenceTypeForm refTypeForm = CFormFinder.GetRefFormToEdit(typeof(CIntervention));
         if (refTypeForm != null)
         {
             CFormEditionStandard frm = refTypeForm.GetForm(intervention) as CFormEditionStandard;
             if (frm != null)
             {
                 if (m_gestionnaireModeEdition.ModeEdition)
                 {
                     CFormNavigateurPopup.Show(frm, FormWindowState.Maximized);
                 }
                 else
                 {
                     sc2i.win32.navigation.IFormNavigable thisFrm = FindForm() as sc2i.win32.navigation.IFormNavigable;
                     if (thisFrm != null && thisFrm.Navigateur != null)
                     {
                         thisFrm.Navigateur.AffichePage(frm);
                     }
                     else
                     {
                         CFormMain.GetInstance().AffichePage(frm);
                     }
                 }
             }
         }
         FillListeInterventionsAPlanifier();
         m_controlePlanning.Refresh();
     }
 }
Exemplo n.º 2
0
        private void m_lnk_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Type typeForm = CFormFinder.GetTypeFormToList(m_type);

            if (typeForm != null)
            {
                sc2i.win32.navigation.IFormNavigable form = (sc2i.win32.navigation.IFormNavigable)Activator.CreateInstance(typeForm,
                                                                                                                           new object[] { });
                CSc2iWin32DataNavigation.Navigateur.AffichePage(form);
            }
        }