When I am attaching simple event handler, I can do:
expandable_list_item_inspection_interface_btnCamera.Click -= Expandable_list_item_inspection_interface_btnCamera_Click;
I want to remove an already attached event handler to insure the click event doesn't get called multiple times when attaching a event programmatically in the Adapter of the ExpandableListView .. but if I attach an event like this:
expandable_list_item_inspection_interface_btnCamera.Click -= (sender, e) => btnCamera_Click(sender, e, expandable_list_item_inspection_interface_btnImage1);
expandable_list_item_inspection_interface_btnCamera.Click += (sender, e) => btnCamera_Click(sender, e, expandable_list_item_inspection_interface_btnImage1);
the event still gets called multiple times, although I first removed the event handler and then added another. How do I prevent this?