Пример #1
0
        //---------------------------------------------------------------
        private void m_lnkAddTypeEntite_LinkClicked(object sender, EventArgs e)
        {
            CTypeEntiteSnmpPourSupervision typeEntite = new CTypeEntiteSnmpPourSupervision();

            if (CFormEditTypeEntiteSnmp.EditeTypeEntite(typeEntite, m_baseHandlers))
            {
                m_baseHandlers.AddTypeEntite(typeEntite);
                FillListeTypeEntites();
            }
        }
Пример #2
0
 //---------------------------------------------------------------
 private void m_wndListeTypesEntites_DoubleClick(object sender, EventArgs e)
 {
     if (m_wndListeTypesEntites.SelectedItems.Count == 1)
     {
         CTypeEntiteSnmpPourSupervision typeEntite = m_wndListeTypesEntites.SelectedItems[0] as CTypeEntiteSnmpPourSupervision;
         if (typeEntite != null)
         {
             if (CFormEditTypeEntiteSnmp.EditeTypeEntite(typeEntite, m_baseHandlers))
             {
                 FillListeTypeEntites();
             }
         }
     }
 }