private bool CanHandle(ItemEvent arg) { if (BeforeAction != arg.BeforeAction) { return(false); } if (EventType != arg.EventType) { return(false); } if (!ItemId.Equals(arg.ItemUID)) { return(false); } if (Modes.Count > 0 && !Modes.Contains((BoFormMode)arg.FormMode)) { return(false); } if (ColumnIds.Count > 0 && !ColumnIds.Contains(arg.ColUID)) { return(false); } return(true); }