Exemplo n.º 1
0
 //------------------------------------------------------------------------------
 void CWndFor2iLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (WndFor2iLink != null && WndFor2iLink.Action != null)
     {
         CResultAErreur result = CExecuteurActionSur2iLink.ExecuteAction(
             Control,
             WndFor2iLink.Action,
             CUtilControlesWnd.GetObjetForEvalFormuleParametrage(this, EditedElement));
         if (!result)
         {
             CFormAlerte.Afficher(result.Erreur);
         }
     }
     CUtilControlesWnd.DeclencheEvenement(C2iWndLink.c_strIdEvenementLinkClicked, this);
 }
Exemplo n.º 2
0
        //--------------------------------------------
        void m_pictureBox_MouseClick(object sender, MouseEventArgs e)
        {
            C2iWndImage wndImage = WndAssociee as C2iWndImage;

            if (wndImage != null && wndImage.Action != null)
            {
                CResultAErreur result = CExecuteurActionSur2iLink.ExecuteAction(
                    Control,
                    wndImage.Action,
                    CUtilControlesWnd.GetObjetForEvalFormuleParametrage(this, EditedElement));
                if (!result)
                {
                    CFormAlerte.Afficher(result.Erreur);
                }
            }
            CUtilControlesWnd.DeclencheEvenement(C2iWndImage.c_strIdEvenementClick, this);
        }