Пример #1
0
 static void stopNotifyRingtone()
 {
     if (alarmRingtone != null)
     {
         if (alarmRingtone.IsPlaying)
         {
             alarmRingtone.Stop();
         }
         alarmRingtone.Dispose();
         alarmRingtone = null;
     }
 }
Пример #2
0
 public void StopExclusiveNativeSound()
 {
     if (exclusiveRingtone != null && exclusiveRingtone.IsPlaying)
     {
         exclusiveRingtone.Stop();
     }
     if (exclusiveRingtone != null)
     {
         exclusiveRingtone.Dispose();
     }
     exclusiveRingtone = null;
 }
Пример #3
0
        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");
            }
        }