public void RingAlarm() { var cti = memberDatabase.CitaUnica(idCita); var razon = cti.razon; var v = CrossVibrate.Current; v.Vibration(TimeSpan.FromSeconds(12)); Debug.WriteLine("-----------------------------------------------Alarma Sonando-------------------------------------"); CrossLocalNotifications.Current.Show("Tú cita" + razon + " es ahora !!!", "Entiendo"); playAl(); }
//private int alarmRing = 0; //private MemberDatabase memberdatabase; //public SQLiteConnection conn; public CitaInfo(int ID) { InitializeComponent(); memberDatabase = new MemberDatabase(); var citaunica = memberDatabase.CitaUnica(ID); ListCitaUnica.ItemsSource = new List <Cita> { citaunica }; //DateTime dtx = DateTime.Parse(dt); GETUSERSCITA(ID); idCita = ID; //if (alarmRing == 1) //{ // btnAlarm.IsEnabled = true; //} //else { // btnAlarm.IsEnabled = false; //} }