protected override ICollector <ActionEntity> GetTrigger(IContext <ActionEntity> context) { return(context.CreateCollector(ActionMatcher .AllOf(ActionMatcher.Action, ActionMatcher.ActionAddEntityToGrid) .NoneOf(ActionMatcher.Delay, ActionMatcher.Consumed))); }
public Form1() { InitializeComponent(); //初始化,绑定数据 portHelper = new PortHelper(serialPort); portHelper.setComboBox(comboBox1); portHelper.checkSerialPort(); keyhook = new KeyHook(); matcher = new ActionMatcher(keyhook); }
protected override ICollector <ActionEntity> GetTrigger(IContext <ActionEntity> context) { return(context.CreateCollector(ActionMatcher.AllOf(ActionMatcher.ActionCreateMapEditor) .NoneOf(ActionMatcher.Consumed, ActionMatcher.Delay))); }