static void stopNotifyRingtone() { if (alarmRingtone != null) { if (alarmRingtone.IsPlaying) { alarmRingtone.Stop(); } alarmRingtone.Dispose(); alarmRingtone = null; } }
public void StopExclusiveNativeSound() { if (exclusiveRingtone != null && exclusiveRingtone.IsPlaying) { exclusiveRingtone.Stop(); } if (exclusiveRingtone != null) { exclusiveRingtone.Dispose(); } exclusiveRingtone = null; }
public void EndAction() { try { Vibrator.Cancel(); Ringtone.Stop(); Ringtone.Dispose(); TimerHelper = false; ChangeButtonsVisibility(); ChangeStepVisibility(); } catch (Exception ex) { UserDialogs.Instance.Alert("Bład!\r\n\r\n" + ex.ToString(), "Błąd", "OK"); } }