private void FilterEditorItems(IStateMachine stateMachine, PropertyEditor propertyEditor) { var args = new StatePropertyFilterEditorItemsEventArgs(stateMachine, propertyEditor); OnCustomFilterEditorItems(args); if (!args.Handled) { var markers = GetMarkers(stateMachine); var propertyFilter = StatePropertyFilter.Create(propertyEditor); propertyFilter.Filter(stateMachine, markers); } }
private void CustomFilterEditorItems(object sender, StatePropertyFilterEditorItemsEventArgs e) { e.Handled = e.StateMachine.CanExecuteAllTransitions(); }
protected virtual void OnCustomFilterEditorItems(StatePropertyFilterEditorItemsEventArgs e) { var handler = CustomFilterEditorItems; handler?.Invoke(this, e); }