Skip to content

how to determine if EventHandler has a Event? #1346

@ljzj2

Description

@ljzj2

there is Button and I will set to it.
button.Click+=(sender,e)=>{

}

if I run it twice it will run the code twice.
since it bind two code.

how to determine the button has a event so I do not run the code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions