Exemplo n.º 1
0
        //-----------------------------------------------------------------------
        public static bool EditeConnexion(ref CSnmpConnexion connexion)
        {
            CFormSetupInterrogationSNMP form = new CFormSetupInterrogationSNMP();

            form.m_connexion = connexion;
            bool bResult = form.ShowDialog() == DialogResult.OK;

            if (bResult)
            {
                connexion = form.m_connexion;
            }
            form.Dispose();

            return(bResult);
        }
Exemplo n.º 2
0
 //----------------------------------
 private void SetupConnexion()
 {
     foreach (CEasyQuerySource source in m_query.Sources)
     {
         CSnmpConnexionForEasyQuery snmpFiller = source.Connexion as CSnmpConnexionForEasyQuery;
         if (snmpFiller != null)
         {
             CInterrogateurSnmpSimplePourFiller agent = snmpFiller.Agent;
             if (agent != null)
             {
                 CSnmpConnexion cnx = agent.Connexion;
                 if (cnx == null)
                 {
                     cnx = new CSnmpConnexion();
                 }
                 if (CFormSetupInterrogationSNMP.EditeConnexion(ref cnx))
                 {
                     agent.Connexion = cnx;
                 }
                 break;
             }
         }
     }
 }
Exemplo n.º 3
0
 //----------------------------------
 private bool SetupConnexion()
 {
     return(CFormSetupInterrogationSNMP.EditeConnexion(ref m_connexion));
 }