//----------------------------------------------------------------------------------------------- private void m_lnkActionSurMenuItem_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (m_actionMenuItemListeDynamique != null) { if (TypeForItem != null) { CObjetPourSousProprietes objForItem = TypeForItem; if (m_objetPourSousProprietes != null) { CDefinitionMultiSourceForExpression multi = m_objetPourSousProprietes.ElementAVariableInstance as CDefinitionMultiSourceForExpression; if (multi != null) { CDefinitionMultiSourceForExpression copie = new CDefinitionMultiSourceForExpression(TypeForItem); foreach (string strSource in multi.GetNomSources()) { copie.AddSource(strSource, multi.GetSource(strSource)); } objForItem = new CObjetPourSousProprietes(copie); } } CActionSur2iLink actionSpec = m_actionMenuItemListeDynamique.Action; actionSpec = CFormEditActionSurLink.EditeAction(actionSpec, objForItem); if (actionSpec != null) { m_actionMenuItemListeDynamique.Action = actionSpec; } } } }
//---------------------------------------------------------------------------- private void m_lnkEditActionDetailSpecifique_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (m_actionEditee != null && m_actionEditee.Filtre != null && m_actionEditee.Filtre.TypeElements != null) { CActionSur2iLink actionSpec = m_actionEditee.ActionSurDetail; actionSpec = CFormEditActionSurLink.EditeAction(actionSpec, m_actionEditee.Filtre.TypeElements); if (actionSpec != null) { m_actionEditee.ActionSurDetail = actionSpec; } } }
private void m_lnkActionSurMenuItem_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (m_actionMenuItem != null) { CActionSur2iLink actionSpec = m_actionMenuItem.Action; actionSpec = CFormEditActionSurLink.EditeAction(actionSpec, m_objetPourSousProprietes); if (actionSpec != null) { m_actionMenuItem.Action = actionSpec; } } }
//--------------------------------------- public void EditeAction(ref CActionSur2iLink action) { action = CFormEditActionSurLink.EditeAction(action, m_objetPourSousProprietes); }