private void TriggerManagerOnChangedState(object sender, TriggerChangedStateEventArgs args)
        {
            var notification = new UILocalNotification
            {
                AlertAction = "Your beer is at the wrong temperature!",
                SoundName = UILocalNotification.DefaultSoundName
            };

            UIApplication.SharedApplication.PresentLocalNotificationNow(notification);
        }
 void HandleTriggerChangedState(object sender, TriggerChangedStateEventArgs e)
 {
     if (e.Trigger.Identifier == TriggerId && e.Trigger.State)
     {
         Console.WriteLine("You forgot your bag!");
         var notification = new UILocalNotification();
         notification.AlertBody = "You forgot your bag!";
         UIApplication.SharedApplication.PresentLocalNotificationNow(notification);
     }
 }
        private void TriggerManagerOnChangedState(object sender, TriggerChangedStateEventArgs args)
        {
            var notification = new UILocalNotification
            {
                AlertAction = "Your beer is at the wrong temperature!",
                SoundName   = UILocalNotification.DefaultSoundName
            };

            UIApplication.SharedApplication.PresentLocalNotificationNow(notification);
        }
        void HandleTriggerChangedState(object sender, TriggerChangedStateEventArgs e)
        {
            if(e.Trigger.Identifier == TriggerId && e.Trigger.State)
            {
                Console.WriteLine("You forgot your bag!");
                var notification = new UILocalNotification();
                notification.AlertBody = "You forgot your bag!";
                UIApplication.SharedApplication.PresentLocalNotificationNow(notification);

            }
        }
Exemple #5
0
 void HandleTriggerChangedState(object sender, TriggerChangedStateEventArgs e)
 {
     LabelTime.Text = DateTime.Now.ToString("G");
 }
 void HandleTriggerChangedState(object sender, TriggerChangedStateEventArgs e)
 {
     LabelTime.Text = DateTime.Now.ToString ("G");
 }