/// <summary>
 /// Handles "HeartRateSensorNotSupported" event of the HeartRateMonitorModel object.
 /// Executes NotSupportedInfoCommand command.
 /// </summary>
 /// <param name="sender">Object firing the event.</param>
 /// <param name="e">Arguments passed to the event.</param>
 private void ModelOnHeartRateSensorNotSupported(object sender, EventArgs e)
 {
     Device.StartTimer(TimeSpan.Zero, () =>
     {
         NotSupportedInfoCommand?.Execute(null);
         // return false to run the timer callback only once
         return(false);
     });
 }
示例#2
0
 /// <summary>
 /// Handles "HeartRateSensorNotSupported" event of the HeartRateMonitorModel object.
 /// Executes NotSupportedInfoCommand command.
 /// </summary>
 /// <param name="sender">Object firing the event.</param>
 /// <param name="e">Arguments passed to the event.</param>
 private void ModelOnHeartRateSensorNotSupported(object sender, EventArgs e)
 {
     NotSupportedInfoCommand?.Execute(null);
 }