예제 #1
0
        public static void TestFolder(CFolderConsultationHierarchique folder)
        {
            CFormTestConsultationHierarchique form = new CFormTestConsultationHierarchique();

            form.m_folderRoot     = folder;
            form.m_contexteDonnee = new CContexteDonnee(CTimosApp.SessionClient.IdSession, true, false);
            form.ShowDialog();
            form.Dispose();
        }
예제 #2
0
 private void m_lnkTester_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (m_panelEditionConsultation.Folder != null)
     {
         m_panelEditionConsultation.MajChamps();
         CFolderConsultationRacineFromElement racine = m_panelEditionConsultation.Folder as CFolderConsultationRacineFromElement;
         if (racine != null)
         {
             CObjetDonnee objet = CFormSelectUnObjetDonnee.SelectionRechercheRapide(
                 I.T("Select an element for test|20735"),
                 racine.TypeRacine,
                 null,
                 "",
                 DescriptionFieldAttribute.GetDescriptionField(racine.TypeRacine, "Description"),
                 "FORTESTCONSULT");
             if (objet == null)
             {
                 return;
             }
             racine.InitConsultation(objet);
         }
         CFormTestConsultationHierarchique.TestFolder(m_panelEditionConsultation.Folder);
     }
 }