void OnPositionError (PositionErrorEventArgs e) { var error = PositionError; if (error != null) error (this, e); }
private void OnPositionError (PositionErrorEventArgs e) { StopListening(); var error = PositionError; if (error != null) error (this, e); }
private void OnPositionError(object sender, PositionErrorEventArgs e) { StopListening(); EventHandler<PositionErrorEventArgs> error = PositionError; if (error != null) error(this, e); }