Stop executing events

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kuba Florczyk

    #1

    Stop executing events

    Hi

    In my application one of class got event. But after calling EventHandlers i
    want to stop execute rest if one of them set e.Handled = true.
    How to do it?

    kuba florczyk


  • Val Savvateev

    #2
    Re: Stop executing events

    Use GetInvocationLi st() method to get list of the event handlers. Invoke
    each handler in a loop while checking if the event was "handled".

    Val.

    "Kuba Florczyk" <chomik77@poczt a.onet.pl> wrote in message
    news:u3cRhAdVDH A.2340@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Hi
    >
    > In my application one of class got event. But after calling EventHandlers[/color]
    i[color=blue]
    > want to stop execute rest if one of them set e.Handled = true.
    > How to do it?
    >
    > kuba florczyk
    >
    >[/color]


    Comment

    Working...