예제 #1
0
        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);
            }
        }
예제 #2
0
 private void CustomFilterEditorItems(object sender, StatePropertyFilterEditorItemsEventArgs e)
 {
     e.Handled = e.StateMachine.CanExecuteAllTransitions();
 }
예제 #3
0
        protected virtual void OnCustomFilterEditorItems(StatePropertyFilterEditorItemsEventArgs e)
        {
            var handler = CustomFilterEditorItems;

            handler?.Invoke(this, e);
        }