//--------------------------------------------------------------- private bool EditeQuery(CEasyQuery query) { CEasyQuerySource source = new CEasyQuerySource(); CDynamicSnmpAgent agent = new CDynamicSnmpAgent(); agent.Connexion = m_connexion; source.AddTableFiller(new CSnmpTableFiller(agent)); CTableDefinitionSNMP.FromMib(source, m_browser.RootDefinition, source.RootFolder); query.Source = source; return(CFormEditEasyQuery.EditeQuery(query)); }
//------------------------------------------------------------------------------ private void m_lnkEditSourceQuery_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { string strId = m_typeEntite.IdObjetDeQuerySource; if (strId != "") { CODEQBase objet = GetObjetDeQuerySource(); if (objet != null && objet.Query != null) { CFormEditEasyQuery.EditeQuery(objet.Query); } } }