Esempio n. 1
0
        //------------------------------------------------------------
        private void m_btnParametres_Click(object sender, EventArgs e)
        {
            CConfigurationRechercheEntites config = CFormParametresRecherche.EditeConfiguration(m_entitesManager.ConfigurationRecherche);

            if (config != null)
            {
                m_entitesManager.ConfigurationRecherche = config;
            }
        }
 //---------------------------------------------------------------------------
 public static CConfigurationRechercheEntites EditeConfiguration(CConfigurationRechercheEntites configuration)
 {
     using (CFormParametresRecherche frm = new CFormParametresRecherche())
     {
         frm.m_configuration = CCloner2iSerializable.CloneGeneric <CConfigurationRechercheEntites>(configuration);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             return(frm.m_configuration);
         }
     }
     return(null);
 }