Esempio n. 1
0
        private void m_btnSearch_Click(object sender, EventArgs e)
        {
            if (OnButonSearcheClick != null)
            {
                OnButonSearcheClick(this, new EventArgs());
            }

            List <IObjetACoordonnees> lstResult = GetResultatsRecherche();

            if (lstResult == null)
            {
                return;
            }

            int nResult = lstResult.Count;

            if (nResult == 0)
            {
                CFormAlerte.Afficher(I.T("No element corresponds to this coordinate|30123"), EFormAlerteType.Exclamation);
            }
            else if (AfficherListeResultat)
            {
                CFormFloatResultIObjetACoordonnees.AfficherResultats(lstResult);
            }
            else if (nResult == 1 && NaviguerAutomatiquementVersResultatUnique)
            {
                CFormFloatResultIObjetACoordonnees.NaviguerVersObjetACoordonnee(lstResult[0]);
            }
        }
        public static void AfficherResultats(List <IObjetACoordonnees> lstObjs)
        {
            CFormFloatResultIObjetACoordonnees frm = new CFormFloatResultIObjetACoordonnees();

            frm.Init(lstObjs);
            frm.Show();
        }