Do you avoid "UI" in event names?
1/05/2018 7:11 AM by
No "UI" in event names, the event raiser should be unaware of the UI in MVVM and user controls
The handler of the event should then do something on the UI.
private void RaiseUIUpdateBidButtonsRed() Bad Code: Avoid "UI" in event names, an event is UI un-aware
if (UIUpdateBidButtonsRed != null)
private void RaiseSelectedLotUpdated() Good Code: We received an update on the currently selected item, change the UI correspondingly (or even better: use MVVM and data binding)
if (SelectedLotUpdated != null)
Do you feel this rule needs an update?