private void Trigger_TriggerFired(object sender, TriggerFiredEventArgs e) { if (e.FiredActions == null || e.FiredActions.Count == 0) { return; } var point = new List <Point>(new[] { e.FiredPoint }); PluginManager.Instance.ExecuteAction(e.FiredActions, PointCapture.Instance.Mode, new List <int>(new[] { 1 }), point, new List <List <Point> >(new[] { point })); }
private void Trigger_TriggerFired(object sender, TriggerFiredEventArgs e) { var point = new List <Point>(new[] { e.FiredPoint }); var executableActions = ApplicationManager.Instance.GetRecognizedDefinedAction((List <IAction>)e.FiredActions).ToList(); if (executableActions == null || executableActions.Count == 0) { return; } PluginManager.Instance.ExecuteAction(executableActions, PointCapture.Instance.Mode, new List <int>(new[] { 1 }), point, new List <List <Point> >(new[] { point })); }
protected virtual void OnTriggerFired(TriggerFiredEventArgs e) { TriggerFired?.Invoke(this, e); }