C2025-038 Code cleanup to prevent multiple events from being assigned to the same method. #573
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "C2025-038_EventCalls"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
C2025-038
Code cleanup to prevent multiple events from being assigned to the same method.
This was done in places where we dynamically assign event handlers.
Looks good. Ready for QA testing.
@ -28,7 +28,9 @@ namespace AT.STO.UI.Win
_dropDownHelper = new DropDownWindowHelper();
_dropDownHelper.DropDownClosed -= new DropDownClosedEventHandler(DropDownHelper_DropDownClosed);
If memory concerns occur, when remove eventhandler, can change:
_dropDownHelper.DropDownClosed -= new DropDownClosedEventHandler(DropDownHelper_DropDownClosed);
to
_dropDownHelper.DropDownClosed -= DropDownHelper_DropDownClosed;
--just adding this for reference, would apply throughout. Can be addressed later if anything comes up - just wanted to add this here for reference in case it comes up down the line.