public void OnProcessTriger(object owner, MatrixSensorEventArgs eventArgs) { if (ProcessTrigerEvent != null) { if (owner != this) { eventArgs.MediumTransmitters.Add(this); } ProcessTrigerEvent(owner, eventArgs); } }
protected void Triger(object owner, MatrixSensorEventArgs eventArgs) { if (FireTrigerEvent != null) { if (eventArgs == null) { eventArgs = new MatrixSensorEventArgs(); } if (owner != this) { eventArgs.MediumTransmitters.Add(this); } FireTrigerEvent(owner, eventArgs); } }
public void Triger(MatrixSensorEventArgs eventArgs) { Triger(this, eventArgs); }