コード例 #1
0
 public SetUpSoundxaml(SetUpAlarm setUpAlarm)
 {
     InitializeComponent();
     ringtones = new Ringtones();
     setup     = setUpAlarm;
     SetupLists();
 }
コード例 #2
0
 private void PlaySound()
 {
     if (alarm.SoundStatus)
     {
         Ringtones ringtones = new Ringtones();
         ringtones.PlayRingtone(alarm.SoundUri);
     }
 }
コード例 #3
0
        public void CancelAlarm()
        {
            Ringtones ringtones = new Ringtones();

            ringtones.StopRingtone(alarm.SoundName);
            CancelVibration = true;
            Vibration.Cancel();
            alarm.Status = false;
            FileManager fileManager = new FileManager();

            fileManager.SaveAlarm(alarm);
            Navigation.PopAsync();
        }
コード例 #4
0
ファイル: AlarmEnterCode.cs プロジェクト: deezow756/NFC_Alarm
 private void Button_Clicked(object sender, EventArgs e)
 {
     if (entry.Text == code)
     {
         Ringtones ringtones = new Ringtones();
         ringtones.StopRingtone(alarmPage.alarm.SoundName);
         alarmPage.CancelVibration = true;
         Vibration.Cancel();
         alarmPage.alarm.Status = false;
         FileManager fileManager = new FileManager();
         fileManager.SaveAlarm(alarmPage.alarm);
         CloseApp closeApp = new CloseApp();
     }
 }